36
|
1 // ==UserScript==
|
42
|
2 // @name Cuffs/Hulotte tuning
|
109
|
3 // @namespace https://nanaya.net
|
82
|
4 // @version 1.1.6
|
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
|
109
|
11 // @downloadURL https://hg.nanaya.net/ec-userscripts/raw-file/tip/cuffs-hulotte-popup.user.js
|
36
|
12 // ==/UserScript==
|
|
13
|
109
|
14 'use strict';
|
|
15
|
66
|
16 /* global jQuery, stopload */
|
109
|
17 function alwaysConsent () {
|
108
|
18 const $ = jQuery;
|
|
19 const rules = [];
|
|
20 let i;
|
|
21 let styleEl;
|
43
|
22
|
66
|
23 if (document.querySelector('body > #mainContent') != null) {
|
108
|
24 rules.push('body > :not(#mainContent) { display: none !important; }');
|
66
|
25 }
|
|
26
|
108
|
27 rules.push('#load_bg { display: none !important; }');
|
|
28 rules.push('body > .modal { display: none !important; }');
|
|
29 rules.push('body > div[style*="position: fixed"] { display: none !important; }');
|
45
|
30
|
66
|
31 for (i = 0; i < rules.length; i++) {
|
108
|
32 styleEl = document.createElement('style');
|
|
33 document.head.appendChild(styleEl);
|
|
34 styleEl.sheet.insertRule(rules[i], 0);
|
66
|
35 }
|
38
|
36
|
66
|
37 $(function () {
|
108
|
38 $('.cboxElement').removeClass('cboxElement');
|
|
39 });
|
47
|
40
|
66
|
41 // force remove modal
|
108
|
42 $.cookie('modal', 'off');
|
66
|
43 if (typeof stopload === 'function') {
|
108
|
44 stopload();
|
66
|
45 }
|
109
|
46 }
|
|
47
|
|
48 alwaysConsent();
|