comparison cuffs-hulotte-popup.user.js @ 40:23c1810da164

Only if there's main content
author nanaya <me@nanaya.pro>
date Thu, 20 Jul 2017 20:29:43 +0900
parents c994d0e076a3
children 1ca21c3adcf0
comparison
equal deleted inserted replaced
39:c994d0e076a3 40:23c1810da164
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.3 4 // @version 1.0.4
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
11 // ==/UserScript== 11 // ==/UserScript==
12 12
13 ;(function() { 13 ;(function() {
14 "use strict"; 14 "use strict";
15 15
16 if (document.querySelector('body > #mainContent') == null) {
17 return;
18 }
19
16 var styleEl = document.createElement('style'); 20 var styleEl = document.createElement('style');
17 document.head.appendChild(styleEl); 21 document.head.appendChild(styleEl);
18 var styleSheet = styleEl.sheet; 22 var styleSheet = styleEl.sheet;
19 23
20 styleSheet.insertRule( 24 styleSheet.insertRule(