De-anonymize links

Open anonimized/redirected links directly

当前为 2015-01-22 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name De-anonymize links
  3. // @description Open anonimized/redirected links directly
  4. // @version 1.0
  5. // @author wOxxOm
  6. // @namespace wOxxOm.scripts
  7. // @license MIT License
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. window.addEventListener('click', function(e) {
  12. for (var a = e.target; a.localName != 'a'; a = a.parentNode)
  13. if (!a.parentNode)
  14. return;
  15. var m = a.href.match(/.+?(https?(?:%3[Aa]%2[Ff]%2[Ff]|:\/\/).+)$/);
  16. if (m) {
  17. a.href = decodeURIComponent(m[1]);
  18. console.log('De-anonymized: ' + a.href);
  19. }
  20. });

QingJ © 2025

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