User:Novov/sandbox/common.js

document.addEventListener("DOMContentLoaded", function(event) {   if (!document.body.classList.contains("page-Category_GreiiN_Roll_Book")) { return; }    //only works on the greiin roll book page    for (let item of document.body.querySelectorAll(".mw-category-generated .mw-category li a")) {        let greiin = item.getAttribute("href").replace("/wiki/", "");        item.insertAdjacentHTML("afterbegin", ` ${greiin} `)    } });