Anna's Archive - Show External Downloads

Automatically expands the external downloads section on httpss://annas-archive.org

目前為 2024-05-08 提交的版本,檢視 最新版本

  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 expands the external downloads section on httpss://annas-archive.org
  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. }