Skip to content

Instantly share code, notes, and snippets.

@Dianliang233
Last active July 6, 2021 15:00
Show Gist options
  • Save Dianliang233/15efd4175dca3a412811a4a60e115815 to your computer and use it in GitHub Desktop.
Save Dianliang233/15efd4175dca3a412811a4a60e115815 to your computer and use it in GitHub Desktop.
F**K YOU TENECNT
// ==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