MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
Tags: Mobile edit Mobile web edit
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) {
         document.querySelectorAll('.tabber-tab').forEach(function (node) {  
             if (node.textContent.includes(localStorage.getItem('current-server'))) node.click()
             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(); }
});
});