知乎重定向

跳过知乎安全中心

// ==UserScript==
// @name         知乎重定向
// @namespace    http://tampermonkey.net/
// @version      0.1.0
// @description  跳过知乎安全中心
// @author       share121
// @match        https://link.zhihu.com/?*target=*
// @icon         https://static.zhihu.com/heifetz/favicon.ico
// @grant        none
// @run-at       document-start
// @license      MIT
// ==/UserScript==

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