Greasy Fork

腾讯文档跳过链接提示

跳过腾讯文档链接跳转提示

// ==UserScript==
// @name         腾讯文档跳过链接提示
// @namespace    http://tampermonkey.net/
// @version      0.1.0
// @description  跳过腾讯文档链接跳转提示
// @author       比奇堡唯一的真Ikun
// @match        https://docs.qq.com/scenario/link.html?*
// @icon         https://docs.gtimg.com/desktop/favicon2.ico
// @grant        none
// @run-at       document-start
// @license      MIT
// ==/UserScript==

(function () {
    "use strict";
    if (/url=([^&]+)/.test(location.search)) {
        location.href = decodeURIComponent(
            location.search.match(/url=([^&]+)/)[1]
        );
    }
})();