render-state.to 去除重定向

去除了render-state.to网页上的产品下载链接重定向,避免进入漫长的等待和验证码环节

目前为 2024-03-10 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name render-State.to bypass
  3. // @name:zh-CN render-state.to 去除重定向
  4. // @namespace http://render-state.to/
  5. // @version 2024-03-08
  6. // @description Get the download link directly.
  7. // @description:zh-cn 去除了render-state.to网页上的产品下载链接重定向,避免进入漫长的等待和验证码环节
  8. // @author cdeeef
  9. // @match https://render-state.to/p/*
  10. // @icon https://render-state.to/wp-content/uploads/2020/09/cropped-favicon-244x244.png
  11. // @grant none
  12. // @run-at document-end
  13. // @license MIT
  14. // ==/UserScript==
  15.  
  16. (function() {
  17. 'use strict';
  18. var links = document.querySelectorAll('a.btnd.ext-link')
  19. links.forEach(function(link) {
  20. var href = link.href;
  21. var match = href.match(/link=([a-zA-Z0-9+\/=]+)/);
  22. if (match && match[1]) {
  23. var decodedUrl = atob(match[1]);
  24. link.href = decodedUrl;
  25. }
  26. });
  27. })();