Created
June 28, 2022 18:01
-
-
Save YadominJinta/175db67ce78211ee0ab8da39edd581b5 to your computer and use it in GitHub Desktop.
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 Fuck QQ Unofficial | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Fuck QQ Unofficial | |
// @author Yadomin | |
// @match https://c.pc.qq.com/middlem.html?pfurl=* | |
// @run-at document-start | |
// @icon https://mat1.gtimg.com/www/icon/favicon2.ico | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
const search = new URLSearchParams(location.search); | |
const pfurl = search.get('pfurl'); | |
if (pfurl.match(/^https?/)) { | |
location.href = pfurl; | |
} else { | |
location.href = `https://${pfurl}`; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment