Anna's Archive - Show External Downloads

Automatically show external downloads on Anna's Archive.

目前为 2024-05-06 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Anna's Archive - Show External Downloads
  3. // @namespace https://ash.fail
  4. // @match https://annas-archive.org/md5/*
  5. // @grant none
  6. // @version 1.0.0
  7. // @author https://ash.fail
  8. // @license Unlicense
  9. // @description Automatically show external downloads on Anna's Archive.
  10. // @homepageURL https://git.ash.fail/userscripts
  11. // @supportURL https://ash.fail/contact.html
  12. // ==/UserScript==
  13.  
  14. for (const el of document.getElementsByClassName("js-show-external")) {
  15. el.classList.remove("hidden");
  16. }
  17.  
  18. for (const el of document.getElementsByTagName("a")) {
  19. if ((el.textContent === "show external downloads")) {
  20. el.classList.add("hidden");
  21. }
  22. }