diff cuffs-hulotte-popup.user.js @ 45:5536da666361

More rules and be more confident 8D
author nanaya <me@nanaya.pro>
date Thu, 24 Aug 2017 20:47:09 +0900
parents 822ff5800f20
children c20e3e6b0a3f
line wrap: on
line diff
--- a/cuffs-hulotte-popup.user.js	Thu Aug 24 19:49:24 2017 +0900
+++ b/cuffs-hulotte-popup.user.js	Thu Aug 24 20:47:09 2017 +0900
@@ -1,7 +1,7 @@
 // ==UserScript==
 // @name         Cuffs/Hulotte tuning
 // @namespace    https://myconan.net
-// @version      1.0.9
+// @version      1.1.0
 // @description  Strip out Cuffs/Hulotte age confirmation popup, disables lightbox
 // @author       nanaya
 // @match        http://www.cuffs.co.jp/*
@@ -19,14 +19,13 @@
     var i;
     var styleEl;
 
-    if (document.querySelector('#load_bg') != null) {
-        rules.push('#load_bg { display: none !important; }');
-    }
-
     if (document.querySelector('body > #mainContent') != null) {
         rules.push('body > :not(#mainContent) { display: none !important; }');
     }
 
+    rules.push('#load_bg { display: none !important; }');
+    rules.push('body > .modal { display: none !important; }');
+
     for (i = 0; i < rules.length; i++) {
         styleEl = document.createElement('style');
         document.head.appendChild(styleEl);