您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
为了应对QQ,知乎,简书...等网站不自动跳转第三方URL的问题
当前为
// ==UserScript== // @name 第三方URL自动跳转 // @namespace https://gf.qytechs.cn/zh-CN/users/42351 // @version 1.0 // @description 为了应对QQ,知乎,简书...等网站不自动跳转第三方URL的问题 // @author Antecer // @include * // @icon64 https://antecer.gitlab.io/amusingdevice/icon/antecer.ico // @icon https://antecer.gitlab.io/amusingdevice/icon/antecer.ico // @run-at document-start // @grant none // @license MIT // ==/UserScript== (function () { 'use strict'; var jumpLink = null; var fromUrl = location.origin + location.pathname; // 规则列表 var fromUrls = { 'https://c.pc.qq.com/middlem.html': /(?<=pfurl=)[^&]+/, // QQ 'https://link.zhihu.com/': /(?<=target=)[^&]+/, // 知乎 'https://www.jianshu.com/go-wild': /(?<=url=)[^&]+/, // 简书 'https://link.csdn.net/': /(?<=target=)[^&]+/, // csdn } // 查找规则 if(fromUrls[fromUrl]){ let jumpMatch = window.location.search.match(fromUrls[fromUrl]); if (jumpMatch) jumpLink = decodeURIComponent(jumpMatch[0]); } // 跳转到目标网页 if (jumpLink) { document.documentElement.innerHTML = `正在跳转到目标网站...<br>${jumpLink}`; top.location = jumpLink; } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址