Greasy Fork

Greasy Fork is available in English.

QQ当前网页非官方页面自动跳转

电脑QQ当前网页非官方页面自动跳转

// ==UserScript==
// @name         QQ当前网页非官方页面自动跳转
// @namespace    http://greasyfork.icu/zh-CN/scripts/438306/
// @version      1.2
// @description  电脑QQ当前网页非官方页面自动跳转
// @author       Yong_Hu_Ming
// @match        https://c.pc.qq.com/*
// @icon         https://qzonestyle.gtimg.cn/qzone/qzact/act/external/tiqq/logo.png
// @grant        none
// @run-at       document-start
// @license      MIT License
// ==/UserScript==

function getUrlParam(name) {
  const params = new URLSearchParams(window.location.search);
  return params.get(name);
}

(function() {
    'use strict';
    // console.log(getUrlParam('url'));
    window.location.href = getUrlParam('url')
})();