User:Jinkipp/global.js

var tools = document.querySelector(".tools"); var li = document.createElement('li'); li.innerHTML = "eruda"; li.id = "erudaid" li.setAttribute("onclick", "loaderuda"); tools.prepend(li); function loaderuda{ if (document.querySelector("#eruda") == undefined){ var script = document.createElement('script'); script.src="https://cdn.jsdelivr.net/npm/eruda"; document.body.appendChild(script); script.onload = function { eruda.init } } } document.addEventListener("keyup", function(e){ if (e.key == "I" && e.ctrlKey && e.shiftKey) {    loaderuda  } })

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:MassCategorization/code.js',    ] });