Mercurial > ec-userscripts
view lashinbang-always-consent.user.js @ 137:7a7aafa65bae default tip
Update url
author | nanaya <me@nanaya.net> |
---|---|
date | Fri, 17 May 2024 15:03:30 +0900 |
parents | dc960ef1248b |
children |
line wrap: on
line source
// ==UserScript== // @name lashinbang always consent // @namespace https://nanaya.net // @version 1.0.0 // @description always apply adult consent session // @author nanaya // @match https://shop.lashinbang.com/* // @grant none // @downloadURL https://hg.nanaya.net/ec-userscripts/raw-file/tip/lashinbang-always-consent.user.js // ==/UserScript== 'use strict'; async function consent () { await fetch('https://shop.lashinbang.com/age_check'); window.location.reload(); } const consentOffLink = document.querySelector('a[href="https://shop.lashinbang.com/age_check_off"]'); if (consentOffLink == null) { consent(); }