diff --git a/js/places/place-view.js b/js/places/place-view.js index 6b9fb47..7a862fd 100644 --- a/js/places/place-view.js +++ b/js/places/place-view.js @@ -146,6 +146,16 @@ const Gamepasses = Array.from(GamepassesTab.getElementsByClassName('card')) || [ if (Settings.ReaddCopyablePlacesOn === true) { ReaddCopyable() } + + if (document.querySelector('.text-warning .fa-lock') || new URLSearchParams(window.location.search).has('testRestrictedServers')) { + const ServerJoinButtons = Array.from(document.querySelectorAll('#servers-tabpane button')); + for (let button of ServerJoinButtons) { + button.classList.add('btn-secondary'); + button.classList.remove('btn-success'); + button.disabled = true; + button.innerText = 'Restricted' + } + } }); })();