Greasy Fork

来自缓存

Greasy Fork is available in English.

Access Denied

Pretends your access to a website is denied. Enter your webiste URL on line 6 (If URL contains www then add that too)

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Access Denied
// @namespace    http://greasyfork.icu/en/users/946530-devfishh
// @version      1.0
// @description  Pretends your access to a website is denied. Enter your webiste URL on line 6 (If URL contains www then add that too)
// @author       DevFish
// @match        https://www.tiktok.com/*
// @grant        window.close
// @license      GNU GPLv3
// ==/UserScript==

document.querySelector("body").remove();document.head.insertAdjacentHTML("afterend",`<title>Access Denied</title><h1>Access Denied</h1><h3>Your access to this webpage has been denied</h3><button id="close">Close</button>`);document.querySelector("head").remove();document.querySelector("html").setAttribute("oncontextmenu","return false");document.getElementById("close").onclick=function(){window.close()};setTimeout(function(){console.clear()},1000)