ElEditors, Interface administrators, Administrators
70,892
edits
No edit summary |
No edit summary |
||
Line 302: | Line 302: | ||
docReady(function () { | docReady(function () { | ||
setTimeout(function () { | setTimeout(function () { | ||
document.querySelectorAll('.tabber-tab').forEach(function (node) { | if (localStorage.getItem('current-server') !== null) { | ||
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); | ||
}); | }); | ||