// ==UserScript== // @name fuck off ?tdsourcetag=s_pctim_aiomsg v1.4 // @name:zh-CN 去除?tdsourcetag=s_pctim_aiomsg v1.4 // @version 1.4 // @description an improved version of https://greasyfork.org/zh-CN/scripts/392201 // @description:zh-cn 去除URL中的tdsourcetag=s_pctim_aiomsg // @author chess99 // @create 2020-06-18 // @match http://*/* // @match https://*/* // @grant none // @run-at document-start // @namespace https://greasyfork.org/users/584389 // @downloadURL none // ==/UserScript== (function() { 'use strict'; // Your code here... if(/tdsourcetag=s_pctim_aiomsg/.test(window.location.href)) { var newUrl = window.location.href.replace('?tdsourcetag=s_pctim_aiomsg&', '?').replace('?tdsourcetag=s_pctim_aiomsg', '').replace(/\&tdsourcetag=s_pctim_aiomsg/g, '') window.location.replace(newUrl) } })();