您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
解决打开 QQ 链接提示“非官方站点”和腾讯文档打开链接提示“即将离开腾讯文档”
当前为
// ==UserScript== // @name FUCK Tecent URL redirect // @namespace http://bkt.moe/ // @version 0.1 // @description 解决打开 QQ 链接提示“非官方站点”和腾讯文档打开链接提示“即将离开腾讯文档” // @author ShadowPower // @match https://c.pc.qq.com/middlem.html* // @match https://docs.qq.com/scenario/link.html* // @run-at document-start // @grant none // @license AGPL // ==/UserScript== (function() { 'use strict'; stop(); const queryParams = ['pfurl', 'url']; const params = new URLSearchParams(location.search); queryParams.forEach(queryParam => { if (params.has(queryParam)) { const encoded_url = params.get(queryParam); let url = decodeURIComponent(encoded_url); if (!/^https?:\/\//i.test(url)) { url = 'https://' + url; } location.replace(url); } }); })();