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

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

// ==UserScript==
// @name         QQ当前网页非官方页面自动跳转
// @namespace    https://greasyfork.org/zh-CN/scripts/438306/
// @version      1.1
// @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
// @require      http://cdn.bootcss.com/jquery/1.8.3/jquery.min.js
// @license      MIT License
// ==/UserScript==

function getUrlParam(name)
{
    var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
    var r = window.location.search.substr(1).match(reg);
    if (r!=null) return unescape(r[2]); return null;
}

(function() {
    'use strict';
    window.location.href = getUrlParam('pfurl')
})();