Greasy Fork 支持简体中文。

QQ打开链接自动跳转到真实连接

如果不能跳转,请自行修复,一般是正则问题

// ==UserScript==
// @name         QQ打开链接自动跳转到真实连接
// @namespace    c.pc.qq.com
// @version      0.1
// @description  如果不能跳转,请自行修复,一般是正则问题
// @author       吾爱破解@夜泉
// @match        https://c.pc.qq.com/*
// @grant        none
// @license      吾爱破解@夜泉
// ==/UserScript==

(function() {
    'use strict';
    let currentUrl = window.location.href;
    try{
        var match = /pfurl=(.*?)&pfuin/.exec(decodeURIComponent(currentUrl));
        if (match != null && match[1] !== undefined)  {
            window.location.href = match[1];
            return;
        }
       throw '正则没有匹配上,请修复';
    }catch(e){
        alert('报错了(油猴脚本名:QQ打开链接自动跳转到真实连接)\r\n\r\n' + e);
    }
})();