Skip to content

Instantly share code, notes, and snippets.

@YadominJinta
Created June 28, 2022 18:01
Show Gist options
  • Save YadominJinta/175db67ce78211ee0ab8da39edd581b5 to your computer and use it in GitHub Desktop.
Save YadominJinta/175db67ce78211ee0ab8da39edd581b5 to your computer and use it in GitHub Desktop.
// ==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