12 lines
325 B
JavaScript
12 lines
325 B
JavaScript
const { pathname, hostname, href } = window.location;
|
|
|
|
if (pathname.startsWith('/z')) {
|
|
window.location.href = href.replace('/z', '/a');
|
|
}
|
|
|
|
if (
|
|
(hostname === 'weba.telegram.org' || hostname === 'webz.telegram.org') && !localStorage.getItem('tt-global-state')
|
|
) {
|
|
window.location.href = 'https://web.telegram.org/a';
|
|
}
|