您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
让链接跳转提示自动跳转
// ==UserScript== // @name 无须确认,直接跳转 // @namespace Don't confirm, just redirect. // @match *://none/ // @grant none // @version 0.0.3 // @author - // @description 让链接跳转提示自动跳转 // ==/UserScript== const rules = [ { // Weibo reg: /^https?:\/\/t.cn\/\w+/i, isit: () => { return document.body.querySelectorAll('p').length === 2 && document.body.querySelectorAll('p.link').length === 1 }, link: () => { return document.body.querySelector('p.link').innerText } }, { // Other reg: /https?%3A(?:%2F%2F|\/\/)/i, isit: true, link: ()=>{ return decodeURIComponent( window.location.search .replace(/^.*?(https?%3A(?:%2F%2F|\/\/))/, '$1') .replace(/&.*$/, '') ) } } ] for(const rule of rules){ if(rule.reg.test(window.location.href)){ if(rule.isit()){ window.location.href = rule.link() } break; } }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址