36
|
1 // ==UserScript==
|
|
2 // @name Cuffs/Hulotte popup disable
|
|
3 // @namespace https://myconan.net
|
40
|
4 // @version 1.0.4
|
36
|
5 // @description Strip out Cuffs/Hulotte age confirmation popup
|
|
6 // @author nanaya
|
|
7 // @match http://www.cuffs.co.jp/*
|
|
8 // @match http://hulotte.jp/*
|
|
9 // @grant none
|
|
10 // @downloadURL https://bitbucket.org/!api/2.0/snippets/nanayapro/TK64/tip/files/cuffs-hulotte-popup.user.js
|
|
11 // ==/UserScript==
|
|
12
|
38
|
13 ;(function() {
|
36
|
14 "use strict";
|
38
|
15
|
40
|
16 if (document.querySelector('body > #mainContent') == null) {
|
|
17 return;
|
|
18 }
|
|
19
|
38
|
20 var styleEl = document.createElement('style');
|
|
21 document.head.appendChild(styleEl);
|
|
22 var styleSheet = styleEl.sheet;
|
|
23
|
|
24 styleSheet.insertRule(
|
|
25 'body > :not(#mainContent) { display: none !important; }',
|
|
26 styleSheet.cssRules.length
|
|
27 );
|
40
|
28 }).call();
|