kutt.appinn.net Demon Mirror

小众软件短链还原

当前为 2022-04-06 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name kutt.appinn.net Demon Mirror
  3. // @namespace jerryshell
  4. // @version 0.1
  5. // @description 小众软件短链还原
  6. // @author github.com/jerryshell
  7. // @match *://www.appinn.com/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=appinn.com
  9. // @grant GM_xmlhttpRequest
  10. // @connect kutt.appinn.net
  11. // @license GNU Affero General Public License v3.0
  12. // ==/UserScript==
  13.  
  14. /* jshint esversion: 6 */
  15.  
  16. (() => {
  17. 'use strict';
  18. const aElementList = document.querySelectorAll('a');
  19. if (aElementList) {
  20. const kuttAElementList = [...aElementList].filter(aElement => aElement.textContent.startsWith('https://kutt.appinn.net/'));
  21. if (kuttAElementList) {
  22. kuttAElementList.forEach(kuttAElement => {
  23. const href = kuttAElement.href;
  24. console.log('href', href);
  25. GM_xmlhttpRequest({
  26. method: 'HEAD',
  27. url: href,
  28. fetch: true,
  29. onerror: (error) => {
  30. const realUrl = error.error.split('"')[1];
  31. kuttAElement.textContent = realUrl;
  32. kuttAElement.href = realUrl;
  33. },
  34. });
  35. });
  36. }
  37. }
  38. })();

QingJ © 2025

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