comparison cuffs-hulotte-popup.user.js @ 38:1e6093682591

(none)
author Edho Arief <me@nanaya.pro>
date Thu, 20 Jul 2017 09:11:01 +0000
parents 300b54b0c956
children c994d0e076a3
comparison
equal deleted inserted replaced
37:300b54b0c956 38:1e6093682591
1 // ==UserScript== 1 // ==UserScript==
2 // @name Cuffs/Hulotte popup disable 2 // @name Cuffs/Hulotte popup disable
3 // @namespace https://myconan.net 3 // @namespace https://myconan.net
4 // @version 1.0.1 4 // @version 1.0.2
5 // @description Strip out Cuffs/Hulotte age confirmation popup 5 // @description Strip out Cuffs/Hulotte age confirmation popup
6 // @author nanaya 6 // @author nanaya
7 // @match http://www.cuffs.co.jp/* 7 // @match http://www.cuffs.co.jp/*
8 // @match http://hulotte.jp/* 8 // @match http://hulotte.jp/*
9 // @grant none 9 // @grant none
10 // @downloadURL https://bitbucket.org/!api/2.0/snippets/nanayapro/TK64/tip/files/cuffs-hulotte-popup.user.js 10 // @downloadURL https://bitbucket.org/!api/2.0/snippets/nanayapro/TK64/tip/files/cuffs-hulotte-popup.user.js
11 // ==/UserScript== 11 // ==/UserScript==
12 12
13 ;(function($) { 13 ;(function() {
14 "use strict"; 14 "use strict";
15 $(function() { 15
16 $('body > :not(#mainContent)').css({display:'none'}) 16 var styleEl = document.createElement('style');
17 }); 17 document.head.appendChild(styleEl);
18 }).call(jQuery); 18 var styleSheet = styleEl.sheet;
19
20 styleSheet.insertRule(
21 'body > :not(#mainContent) { display: none !important; }',
22 styleSheet.cssRules.length
23 );
24 }).call();