# HG changeset patch # User Edho Arief # Date 1500541861 0 # Node ID 1e6093682591e6d9be8a195a65e530eaf2e344d5 # Parent 300b54b0c956b50f044d56749f83ab84cc673151 diff -r 300b54b0c956 -r 1e6093682591 cuffs-hulotte-popup.user.js --- a/cuffs-hulotte-popup.user.js Thu Jul 20 08:48:00 2017 +0000 +++ b/cuffs-hulotte-popup.user.js Thu Jul 20 09:11:01 2017 +0000 @@ -1,7 +1,7 @@ // ==UserScript== // @name Cuffs/Hulotte popup disable // @namespace https://myconan.net -// @version 1.0.1 +// @version 1.0.2 // @description Strip out Cuffs/Hulotte age confirmation popup // @author nanaya // @match http://www.cuffs.co.jp/* @@ -10,9 +10,15 @@ // @downloadURL https://bitbucket.org/!api/2.0/snippets/nanayapro/TK64/tip/files/cuffs-hulotte-popup.user.js // ==/UserScript== -;(function($) { +;(function() { "use strict"; - $(function() { - $('body > :not(#mainContent)').css({display:'none'}) - }); -}).call(jQuery); \ No newline at end of file + + var styleEl = document.createElement('style'); + document.head.appendChild(styleEl); + var styleSheet = styleEl.sheet; + + styleSheet.insertRule( + 'body > :not(#mainContent) { display: none !important; }', + styleSheet.cssRules.length + ); +}).call(); \ No newline at end of file