Fuck QQ URL

Skip Unsafe Link Warning in Desktop QQ Client

目前为 2022-07-18 提交的版本。查看 最新版本

// ==UserScript==
// @name        Fuck QQ URL
// @namespace   Hill98
// @description Skip Unsafe Link Warning in Desktop QQ Client
// @version     1.2.0
// @author      Hill-98
// @license     MIT
// @icon        https://qzonestyle.gtimg.cn/qzone/qzact/act/external/tiqq/logo.png
// @homepageURL https://github.com/Hill-98/userscripts
// @supportURL  https://github.com/Hill-98/userscripts/issues
// @grant       none
// @match       https://c.pc.qq.com/middlem.html?*
// ==/UserScript==

const usp = new URLSearchParams(location.search);
let pfurl = usp.get('pfurl');
if (pfurl !== null) {
    pfurl = pfurl.match(/^https?:\/\//) === null ? `http://${pfurl}` : pfurl;
    const meta = document.createElement('meta');
    meta.content = `0; url='${pfurl}'`;
    meta.httpEquiv = 'refresh';
    document.head.innerHTML = meta.outerHTML;
    const tips = document.createElement('p');
    tips.style.fontSize = '2rem';
    tips.textContent = 'If there is no jump. ';
    const tipsLink = document.createElement('a');
    tipsLink.href = pfurl;
    tipsLink.textContent = 'click here';
    tips.append(tipsLink);
    document.body.innerHTML = tips.outerHTML;
}

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址