自動點擊4Gamers已滿18歲按鈕

自動點擊按鈕,哪次沒滿18歲

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         自動點擊4Gamers已滿18歲按鈕
// @namespace    http://tampermonkey.net/
// @version      0.5
// @description  自動點擊按鈕,哪次沒滿18歲
// @author       鮪魚大師
// @match        https://www.4gamers.com.tw/*
// @grant        none
// @license      MIT
// ==/UserScript==

!function(){"use strict";let e=0;async function t(e){return new Promise((t=>setTimeout(t,e)))}new MutationObserver((async function(n,o){for(const c of n){const n=document.querySelector(".text-white.bg-black.border-black");if(n&&(n.click(),o.disconnect()),e++,e>=3)return void(e=0);await t(100)}})).observe(document.documentElement,{childList:!0,subtree:!0})}();