# HG changeset patch # User nanaya # Date 1503515489 -32400 # Node ID f52f5727818f633476ca1da644aa3e04bbe0653c # Parent 456614d0a9cafcb4615b6c450c7034da6f733e78 More rules for cuffs diff -r 456614d0a9ca -r f52f5727818f cuffs-hulotte-popup.user.js --- a/cuffs-hulotte-popup.user.js Thu Jul 27 21:25:33 2017 +0900 +++ b/cuffs-hulotte-popup.user.js Thu Aug 24 04:11:29 2017 +0900 @@ -1,7 +1,7 @@ // ==UserScript== // @name Cuffs/Hulotte tuning // @namespace https://myconan.net -// @version 1.0.7 +// @version 1.0.8 // @description Strip out Cuffs/Hulotte age confirmation popup, disables lightbox // @author nanaya // @match http://www.cuffs.co.jp/* @@ -15,14 +15,23 @@ "use strict"; var $ = jQuery; + var rules = ''; + + if (document.querySelector('#load_bg') != null) { + rules += ' #load_bg { display: none !important; } '; + } if (document.querySelector('body > #mainContent') != null) { + rules += ' body > :not(#mainContent) { display: none !important; } '; + } + + if (rules !== '') { var styleEl = document.createElement('style'); document.head.appendChild(styleEl); var styleSheet = styleEl.sheet; styleSheet.insertRule( - 'body > :not(#mainContent) { display: none !important; }', + rules, styleSheet.cssRules.length ); }