MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tags: Reverted Mobile edit Mobile web edit |
No edit summary Tag: Manual revert |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 16: | Line 16: | ||
} | } | ||
} | } |
Latest revision as of 23:00, 29 November 2022
/* Any JavaScript here will be loaded for all users on every page load. */ if ( mw.config.get( 'wgIsMainPage' )) { var language = navigator.language || navigator.browserLanguage; // alert(language); if (language.indexOf('ru') > -1) { document.location.href = 'https://www.exagear.wiki/index.php?title=Main_Page(ru)'; } else { document.location.href = 'https://www.exagear.wiki/index.php?title=Main_Page'; } }