129
|
1 // ==UserScript==
|
|
2 // @name lashinbang always consent
|
|
3 // @namespace https://nanaya.net
|
|
4 // @version 1.0.0
|
|
5 // @description always apply adult consent session
|
|
6 // @author nanaya
|
|
7 // @match https://shop.lashinbang.com/*
|
|
8 // @grant none
|
|
9 // @downloadURL https://hg.nanaya.net/ec-userscripts/raw-file/tip/lashinbang-always-consent.user.js
|
|
10 // ==/UserScript==
|
|
11
|
|
12 'use strict';
|
|
13
|
|
14 async function consent () {
|
|
15 await fetch('https://shop.lashinbang.com/age_check');
|
|
16 window.location.reload();
|
|
17 }
|
|
18
|
|
19 const consentOffLink = document.querySelector('a[href="https://shop.lashinbang.com/age_check_off"]');
|
|
20 if (consentOffLink == null) {
|
|
21 consent();
|
|
22 }
|