changeset 37:300b54b0c956

(none)
author Edho Arief <me@nanaya.pro>
date Thu, 20 Jul 2017 08:48:00 +0000
parents 11568ae07bf5
children 1e6093682591
files cuffs-hulotte-popup.user.js
diffstat 1 files changed, 6 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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