Greasy Fork

酷安拦截自动定向

被小绿书拦截的链接自动跳转到它该去的地方,有问题酷安@ZhiQingYa

// ==UserScript==
// @name         酷安拦截自动定向
// @author       致情吖
// @namespace    coolapk.ZhiQingYa
// @version      1.0
// @description  被小绿书拦截的链接自动跳转到它该去的地方,有问题酷安@ZhiQingYa
// @match        https://www.coolapk.com/link?url=*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    var url = document.location.href;
    var redirectUrl = unescape(url.match(/link\?url=(.*)/)[1]);

    if (redirectUrl) {
        document.location.href = redirectUrl;
    }
})();