Last active
July 6, 2021 15:00
-
-
Save Dianliang233/15efd4175dca3a412811a4a60e115815 to your computer and use it in GitHub Desktop.
F**K YOU TENECNT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name F**K YOU TENECNT | |
// @description Directly redirect to the destination of links opened in QQ instead of Ctrl-C/V it to location bar | |
// @namespace https://example.com/Dianliang233/tencent/ | |
// @version 0.2 | |
// @author Not Dianliang233 | |
// @match https://c.pc.qq.com/middlem.html* | |
// @updateURL https://gist.github.com/Dianliang233/15efd4175dca3a412811a4a60e115815/raw/a5b126b9689503aa7c07911930db24bf3b47e7b9/fuk-you-tenecnt.user.js | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== | |
(function() { | |
let dest = new URLSearchParams(window.location.search).get('pfurl') | |
if (!dest.match(/^https?\:\/\//)) { | |
dest = 'https://' + dest | |
} | |
window.location.href = dest | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment