Mercurial > ec-userscripts
comparison cuffs-hulotte-popup.user.js @ 46:c20e3e6b0a3f
Even more rulesss
| author | nanaya <me@nanaya.pro> |
|---|---|
| date | Thu, 24 Aug 2017 20:51:06 +0900 |
| parents | 5536da666361 |
| children | bc45afe111d8 |
comparison
equal
deleted
inserted
replaced
| 45:5536da666361 | 46:c20e3e6b0a3f |
|---|---|
| 1 // ==UserScript== | 1 // ==UserScript== |
| 2 // @name Cuffs/Hulotte tuning | 2 // @name Cuffs/Hulotte tuning |
| 3 // @namespace https://myconan.net | 3 // @namespace https://myconan.net |
| 4 // @version 1.1.0 | 4 // @version 1.1.1 |
| 5 // @description Strip out Cuffs/Hulotte age confirmation popup, disables lightbox | 5 // @description Strip out Cuffs/Hulotte age confirmation popup, disables lightbox |
| 6 // @author nanaya | 6 // @author nanaya |
| 7 // @match http://www.cuffs.co.jp/* | 7 // @match http://www.cuffs.co.jp/* |
| 8 // @match http://www.cuffs-cube.jp/* | 8 // @match http://www.cuffs-cube.jp/* |
| 9 // @match http://hulotte.jp/* | 9 // @match http://hulotte.jp/* |
| 23 rules.push('body > :not(#mainContent) { display: none !important; }'); | 23 rules.push('body > :not(#mainContent) { display: none !important; }'); |
| 24 } | 24 } |
| 25 | 25 |
| 26 rules.push('#load_bg { display: none !important; }'); | 26 rules.push('#load_bg { display: none !important; }'); |
| 27 rules.push('body > .modal { display: none !important; }'); | 27 rules.push('body > .modal { display: none !important; }'); |
| 28 rules.push('body > div[style*="position: fixed"] { display: none !important; }'); | |
| 28 | 29 |
| 29 for (i = 0; i < rules.length; i++) { | 30 for (i = 0; i < rules.length; i++) { |
| 30 styleEl = document.createElement('style'); | 31 styleEl = document.createElement('style'); |
| 31 document.head.appendChild(styleEl); | 32 document.head.appendChild(styleEl); |
| 32 styleEl.sheet.insertRule(rules[i], 0); | 33 styleEl.sheet.insertRule(rules[i], 0); |
