Anonymous

MediaWiki:Common.js: Difference between revisions

From Elwiki
no edit summary
No edit summary
No edit summary
Line 302: Line 302:


docReady(function () {
docReady(function () {
    if (localStorage.getItem('current-server') !== null) {
 
     setTimeout(function () {
     setTimeout(function () {
         document.querySelectorAll('.tabber-tab').forEach(function (node) {  
         if (localStorage.getItem('current-server') !== null) {
            if (node.textContent.includes(localStorage.getItem('current-server'))) node.click()
            document.querySelectorAll('.boss-timer-section .tabber-tab').forEach(function (node) {
         });
                if (node.textContent.includes(localStorage.getItem('current-server'))) node.click()
            });
         } else {
            document.querySelector('.boss-timer-section .tabber-tab')[0].click();
        }
     }, 10);
     }, 10);
    } else { document.querySelector('.boss-timer-section .tabber-tab')[0].click(); }
 
});
});