comparison lashinbang-always-consent.user.js @ 129:dc960ef1248b

Add lashinbang always consent script
author nanaya <me@nanaya.net>
date Tue, 07 Feb 2023 21:51:34 +0900
parents
children
comparison
equal deleted inserted replaced
128:f2a53a2b9a5b 129:dc960ef1248b
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 }