mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-04-24 06:56:54 -05:00
Hide exit button in tournament manager
This commit is contained in:
parent
f35f2ab549
commit
0dcf1e3598
|
|
@ -5,7 +5,7 @@ const debug = createDebug('app:preload-webservice:quirks:splatnet3');
|
|||
|
||||
const SPLATNET3_WEBSERVICE_ID = 4834290508791808;
|
||||
|
||||
if (webservice.id === SPLATNET3_WEBSERVICE_ID) {
|
||||
if (webservice.id === SPLATNET3_WEBSERVICE_ID && location.hostname.endsWith('.av5ja.srv.nintendo.net')) {
|
||||
const style = window.document.createElement('style');
|
||||
|
||||
style.textContent = `
|
||||
|
|
@ -57,3 +57,17 @@ if (webservice.id === SPLATNET3_WEBSERVICE_ID) {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (webservice.id === SPLATNET3_WEBSERVICE_ID && location.hostname === 'c.nintendo.com' && location.pathname.match(/^\/splatoon3-tournament(\/|$)/i)) {
|
||||
const style = window.document.createElement('style');
|
||||
|
||||
style.textContent = `
|
||||
[class*=AppHeader_closeWebView] {
|
||||
display: none;
|
||||
}
|
||||
`;
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
window.document.head.appendChild(style);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user