Better Links UX for ESJ Zone

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

As of 2022-08-10. See the latest version.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name               Better Links UX for ESJ Zone
// @name:zh-TW         ESJ Zone:更好的連結體驗
// @description        Improve the UX of ESJ Zone by tweaking the hyperlinks in the pages.
// @description:zh-TW  透過調整 ESJ Zone 的超連結來改善使用體驗。
// @author             Jason Kwok
// @namespace          https://jasonhk.dev/
// @version            1.0.0
// @license            MIT
// @match              https://www.esjzone.cc/detail/*
// @run-at             document-end
// @grant              none
// @supportURL         https://greatest.deepsurf.us/scripts/449315/feedback
// ==/UserScript==

const chapters = document.querySelectorAll("#chapterList > a");
for (const chapter of chapters)
{
    chapter.target = "_self";
}