User:Novov/sandbox/common.js

mw.loader.done( function {   /* only works on the greiin roll book page */    document.body.querySelectorAll(".mw-category-generated .mw-category li a").forEach(function (item) { var greiin = item.getAttribute("href").replace("/wiki/", ""); item.insertAdjacentHTML("afterbegin", " "+greiin+" "); }); });