# HG changeset patch # User Edho Arief # Date 1500540480 0 # Node ID 300b54b0c956b50f044d56749f83ab84cc673151 # Parent 11568ae07bf598c2e08b29a28593745583bc7e19 diff -r 11568ae07bf5 -r 300b54b0c956 cuffs-hulotte-popup.user.js --- a/cuffs-hulotte-popup.user.js Thu Jul 20 08:43:51 2017 +0000 +++ b/cuffs-hulotte-popup.user.js Thu Jul 20 08:48:00 2017 +0000 @@ -1,7 +1,7 @@ // ==UserScript== // @name Cuffs/Hulotte popup disable // @namespace https://myconan.net -// @version 1.0.0 +// @version 1.0.1 // @description Strip out Cuffs/Hulotte age confirmation popup // @author nanaya // @match http://www.cuffs.co.jp/* @@ -10,11 +10,9 @@ // @downloadURL https://bitbucket.org/!api/2.0/snippets/nanayapro/TK64/tip/files/cuffs-hulotte-popup.user.js // ==/UserScript== -;(function() { +;(function($) { "use strict"; - var elements = document.querySelectorAll('body > #load_bg, body > .modal'); - - for (var i = 0; i < elements.length; i++) { - elements.style.display = 'none'; - } -}).call(); \ No newline at end of file + $(function() { + $('body > :not(#mainContent)').css({display:'none'}) + }); +}).call(jQuery); \ No newline at end of file