# HG changeset patch # User nanaya # Date 1503575229 -32400 # Node ID 5536da666361569487433096d9fa1890a9dfadc6 # Parent 822ff5800f20cce01f62150666446daa0649a909 More rules and be more confident 8D diff -r 822ff5800f20 -r 5536da666361 cuffs-hulotte-popup.user.js --- 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);