跳过腾讯文档网址安全检测;
// ==UserScript==
// @name 跳过腾讯文档网址安全检测
// @namespace https://greasyfork.org/users/49622
// @version 0.1
// @description 跳过腾讯文档网址安全检测;
// @author 过去终究是个回忆
// @match https://docs.qq.com/scenario/link.html*
// @grant none
// @run-at document-start
// ==/UserScript==
(function() {
'use strict';
function getQueryString(name) {
const reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
const urlObj=window.location;
var r =urlObj.href.indexOf('#')>-1? urlObj.hash.split("?")[1].match(reg) : urlObj.search.substr(1).match(reg);
if (r != null) return unescape(r[2]); return null;
}
var url = getQueryString('url')
// console.log(url)
window.location.replace(url)
})();