36
|
1 // ==UserScript==
|
42
|
2 // @name Cuffs/Hulotte tuning
|
36
|
3 // @namespace https://myconan.net
|
42
|
4 // @version 1.0.7
|
|
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;
|
38
|
18
|
42
|
19 if (document.querySelector('body > #mainContent') != null) {
|
|
20 var styleEl = document.createElement('style');
|
|
21 document.head.appendChild(styleEl);
|
|
22 var styleSheet = styleEl.sheet;
|
40
|
23
|
42
|
24 styleSheet.insertRule(
|
|
25 'body > :not(#mainContent) { display: none !important; }',
|
|
26 styleSheet.cssRules.length
|
|
27 );
|
|
28 }
|
38
|
29
|
42
|
30 $(function () {
|
|
31 $('.cboxElement').removeClass('cboxElement');
|
|
32 });
|
40
|
33 }).call();
|