Better Links UX for ESJ Zone

Improve the UX of ESJ Zone by tweaking the hyperlinks in the pages.

目前为 2022-08-10 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Better Links UX for ESJ Zone
  3. // @name:zh-TW ESJ Zone:更好的連結體驗
  4. // @description Improve the UX of ESJ Zone by tweaking the hyperlinks in the pages.
  5. // @description:zh-TW 透過調整 ESJ Zone 的超連結來改善使用體驗。
  6. // @author Jason Kwok
  7. // @namespace https://jasonhk.dev/
  8. // @version 1.0.0
  9. // @license MIT
  10. // @match https://www.esjzone.cc/detail/*
  11. // @run-at document-end
  12. // @grant none
  13. // ==/UserScript==
  14.  
  15. const chapters = document.querySelectorAll("#chapterList > a");
  16. for (const chapter of chapters)
  17. {
  18. chapter.target = "_self";
  19. }