comparison cuffs-hulotte-popup.user.js @ 109:ef21ef445fc6

Cleanups - wrap everything in function and call them last - fix namespace and update url
author nanaya <me@nanaya.net>
date Sun, 15 Jan 2023 23:33:41 +0900
parents 2c4470b73ad9
children d9dc190bccaf
comparison
equal deleted inserted replaced
108:2c4470b73ad9 109:ef21ef445fc6
1 // ==UserScript== 1 // ==UserScript==
2 // @name Cuffs/Hulotte tuning 2 // @name Cuffs/Hulotte tuning
3 // @namespace https://myconan.net 3 // @namespace https://nanaya.net
4 // @version 1.1.6 4 // @version 1.1.6
5 // @description Strip out Cuffs/Hulotte age confirmation popup, disables lightbox 5 // @description Strip out Cuffs/Hulotte age confirmation popup, disables lightbox
6 // @author nanaya 6 // @author nanaya
7 // @match http://www.cuffs.co.jp/* 7 // @match http://www.cuffs.co.jp/*
8 // @match http://www.cuffs-cube.jp/* 8 // @match http://www.cuffs-cube.jp/*
9 // @match http://hulotte.jp/* 9 // @match http://hulotte.jp/*
10 // @grant none 10 // @grant none
11 // @downloadURL https://hg.myconan.net/ec-userscripts/raw-file/tip/cuffs-hulotte-popup.user.js 11 // @downloadURL https://hg.nanaya.net/ec-userscripts/raw-file/tip/cuffs-hulotte-popup.user.js
12 // ==/UserScript== 12 // ==/UserScript==
13 13
14 'use strict';
15
14 /* global jQuery, stopload */ 16 /* global jQuery, stopload */
15 (function () { 17 function alwaysConsent () {
16 'use strict';
17
18 const $ = jQuery; 18 const $ = jQuery;
19 const rules = []; 19 const rules = [];
20 let i; 20 let i;
21 let styleEl; 21 let styleEl;
22 22
41 // force remove modal 41 // force remove modal
42 $.cookie('modal', 'off'); 42 $.cookie('modal', 'off');
43 if (typeof stopload === 'function') { 43 if (typeof stopload === 'function') {
44 stopload(); 44 stopload();
45 } 45 }
46 }).call(); 46 }
47
48 alwaysConsent();