kutt.appinn.net Demon Mirror

小众软件短链还原

目前为 2022-04-06 提交的版本。查看 最新版本

// ==UserScript==
// @name         kutt.appinn.net Demon Mirror
// @namespace    jerryshell
// @version      0.1
// @description  小众软件短链还原
// @author       github.com/jerryshell
// @match        *://www.appinn.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=appinn.com
// @grant        GM_xmlhttpRequest
// @connect      kutt.appinn.net
// @license      GNU Affero General Public License v3.0
// ==/UserScript==

/* jshint esversion: 6 */

(() => {
    'use strict';
    [...document.querySelectorAll('a')]
        .filter(aElement => aElement.textContent.startsWith('https://kutt.appinn.net/'))
        .forEach(kuttAElement => GM_xmlhttpRequest({
            method: 'HEAD',
            url: kuttAElement.href,
            onerror: (error) => {
                const realUrl = error.error.split('"')[1];
                kuttAElement.textContent = realUrl;
                kuttAElement.href = realUrl;
            },
        }));
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址