Fuck重定向

屏蔽链接自动跳转,目前支持QQ

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        Fuck重定向
// @namespace   https://github.com/Ahaochan/Tampermonkey
// @version     0.0.2
// @description 屏蔽链接自动跳转,目前支持QQ
// @author      Ahaochan
// @include     http*://c.pc.qq.com/middlem.html?pfurl=*
// @license     GPL-3.0
// @supportURL  https://github.com/Ahaochan/Tampermonkey
// @require     https://cdn.bootcdn.net/ajax/libs/jquery/2.2.4/jquery.min.js
// @run-at      document-end
// ==/UserScript==

(function ($) {
    'use strict';
    const url = location.href;

    const urlObject = new URL(url);
    const params = new URLSearchParams(urlObject.search);

    // QQ屏蔽
    const pfurl = params.get('pfurl');
    if (pfurl) {
        location.href = decodeURIComponent(pfurl);
    }
})(jQuery);