您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a bypass button for supported URLs
当前为
// ==UserScript== // @name Bypass Detector // @namespace https://tampermonkey.net/ // @version 0.1 // @description Adds a bypass button for supported URLs // @author You // @match *://*/* // @license MIT // @grant none // ==/UserScript== (function() { 'use strict'; // List of supported domains const SUPPORTED_DOMAINS = [ 'example.com' ]; // Check if current URL is from a supported domain function isSupportedURL(url) { return SUPPORTED_DOMAINS.some(domain => url.includes(domain)); } // Create and add bypass button function addBypassButton() { if (isSupportedURL(window.location.href)) { const button = document.createElement('button'); button.innerHTML = 'Bypass Link'; button.style.cssText = ` position: fixed; top: 20px; right: 20px; z-index: 10000; padding: 10px 20px; background-color: #4CAF50; color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 14px; `; button.addEventListener('mouseover', () => { button.style.backgroundColor = '#45a049'; }); button.addEventListener('mouseout', () => { button.style.backgroundColor = '#4CAF50'; }); button.addEventListener('click', () => { const encodedUrl = encodeURIComponent(window.location.href); window.location.href = `{encodedUrl}`; }); document.body.appendChild(button); } } // Run when page loads window.addEventListener('load', addBypassButton); })();