User:Olaroll/global.js

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

console.log("hello! o/");

function selecttabber { let tabber = document.getElementsByClassName('tabber-NavSpecies'); if (tabber.length > 0) { tabber = tabber[0]; let number = parseInt(tabber.className[tabber.className.indexOf('OpenTab=')+8],10) - 1; tabber.children[0].children[0].getElementsByClassName("tabberactive")[0].classList.remove("tabberactive") tabber.children[0].children[0].getElementsByTagName("li")[number].classList.add("tabberactive"); } } // in case the document is already rendered if (document.readyState!='loading') selecttabber; // modern browsers else if (document.addEventListener) document.addEventListener('DOMContentLoaded', selecttabber);