您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
簡單移除Dcard在未登入狀態下的註冊視窗及禁止捲動
当前为
// ==UserScript== // @name Dcard Guest // @namespace snkoarashi_dcard // @version 1.0 // @description 簡單移除Dcard在未登入狀態下的註冊視窗及禁止捲動 // @author SN-Koarashi (5026) // @match https://*.dcard.tw/* // @icon https://www.google.com/s2/favicons?domain=dcard.tw // @grant GM_setValue // @grant GM_getValue // @grant GM_xmlhttpRequest // @grant unsafeWindow // @require https://code.jquery.com/jquery-3.5.1.min.js // ==/UserScript== (function() { 'use strict'; GM_setValue('dialog',true); GM_setValue('oldURL',location.href); var $ = window.jQuery; // Main Timer var timer = setInterval(function(){ $(".__portal").remove(); $("body").css("overflow",""); let re = /^(https:\/\/www.dcard.tw\/)(.*?)\/p\/([0-9]+)/g; let URLs = location.href; if(URLs.match(re)){ if (location.href != GM_getValue('oldURL')){ GM_setValue('oldURL',location.href); location.reload(true); } } GM_setValue('oldURL',location.href); },500); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址