36
|
1 // ==UserScript==
|
42
|
2 // @name Cuffs/Hulotte tuning
|
36
|
3 // @namespace https://myconan.net
|
43
|
4 // @version 1.0.8
|
42
|
5 // @description Strip out Cuffs/Hulotte age confirmation popup, disables lightbox
|
36
|
6 // @author nanaya
|
|
7 // @match http://www.cuffs.co.jp/*
|
41
|
8 // @match http://www.cuffs-cube.jp/*
|
36
|
9 // @match http://hulotte.jp/*
|
|
10 // @grant none
|
|
11 // @downloadURL https://bitbucket.org/!api/2.0/snippets/nanayapro/TK64/tip/files/cuffs-hulotte-popup.user.js
|
|
12 // ==/UserScript==
|
|
13
|
38
|
14 ;(function() {
|
42
|
15 "use strict";
|
|
16
|
|
17 var $ = jQuery;
|
43
|
18 var rules = '';
|
|
19
|
|
20 if (document.querySelector('#load_bg') != null) {
|
|
21 rules += ' #load_bg { display: none !important; } ';
|
|
22 }
|
38
|
23
|
42
|
24 if (document.querySelector('body > #mainContent') != null) {
|
43
|
25 rules += ' body > :not(#mainContent) { display: none !important; } ';
|
|
26 }
|
|
27
|
|
28 if (rules !== '') {
|
42
|
29 var styleEl = document.createElement('style');
|
|
30 document.head.appendChild(styleEl);
|
|
31 var styleSheet = styleEl.sheet;
|
40
|
32
|
42
|
33 styleSheet.insertRule(
|
43
|
34 rules,
|
42
|
35 styleSheet.cssRules.length
|
|
36 );
|
|
37 }
|
38
|
38
|
42
|
39 $(function () {
|
|
40 $('.cboxElement').removeClass('cboxElement');
|
|
41 });
|
40
|
42 }).call();
|