annotate cuffs-hulotte-popup.user.js @ 36:11568ae07bf5

(none)
author Edho Arief <me@nanaya.pro>
date Thu, 20 Jul 2017 08:43:51 +0000
parents
children 300b54b0c956
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
36
Edho Arief <me@nanaya.pro>
parents:
diff changeset
1 // ==UserScript==
Edho Arief <me@nanaya.pro>
parents:
diff changeset
2 // @name Cuffs/Hulotte popup disable
Edho Arief <me@nanaya.pro>
parents:
diff changeset
3 // @namespace https://myconan.net
Edho Arief <me@nanaya.pro>
parents:
diff changeset
4 // @version 1.0.0
Edho Arief <me@nanaya.pro>
parents:
diff changeset
5 // @description Strip out Cuffs/Hulotte age confirmation popup
Edho Arief <me@nanaya.pro>
parents:
diff changeset
6 // @author nanaya
Edho Arief <me@nanaya.pro>
parents:
diff changeset
7 // @match http://www.cuffs.co.jp/*
Edho Arief <me@nanaya.pro>
parents:
diff changeset
8 // @match http://hulotte.jp/*
Edho Arief <me@nanaya.pro>
parents:
diff changeset
9 // @grant none
Edho Arief <me@nanaya.pro>
parents:
diff changeset
10 // @downloadURL https://bitbucket.org/!api/2.0/snippets/nanayapro/TK64/tip/files/cuffs-hulotte-popup.user.js
Edho Arief <me@nanaya.pro>
parents:
diff changeset
11 // ==/UserScript==
Edho Arief <me@nanaya.pro>
parents:
diff changeset
12
Edho Arief <me@nanaya.pro>
parents:
diff changeset
13 ;(function() {
Edho Arief <me@nanaya.pro>
parents:
diff changeset
14 "use strict";
Edho Arief <me@nanaya.pro>
parents:
diff changeset
15 var elements = document.querySelectorAll('body > #load_bg, body > .modal');
Edho Arief <me@nanaya.pro>
parents:
diff changeset
16
Edho Arief <me@nanaya.pro>
parents:
diff changeset
17 for (var i = 0; i < elements.length; i++) {
Edho Arief <me@nanaya.pro>
parents:
diff changeset
18 elements.style.display = 'none';
Edho Arief <me@nanaya.pro>
parents:
diff changeset
19 }
Edho Arief <me@nanaya.pro>
parents:
diff changeset
20 }).call();