Fuck QQ Alert

QQ拦截页面自动重定向

目前為 2023-04-13 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Fuck QQ Alert
// @namespace    http://tampermonkey.net/
// @version      0.2
// @license      gpl-3.0
// @description  QQ拦截页面自动重定向
// @author       PRO
// @match        https://c.pc.qq.com/middlem.html*
// @icon         https://3gimg.qq.com/tele_safe/static/tmp/ic_alert_blue.png
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    function redirect() {
        var url = getParams('pfurl');
        if (!url.startsWith('http')) {
            url = 'https://' + url;
        }
        window.open(url,'_self');
    }
    window.setTimeout(redirect, 500); // <- 如若感觉等待时间过长或无反应,请自行调整这个数值
})();