MediaWiki:Mobile.js: Difference between revisions
No edit summary |
No edit summary |
||
| (7 intermediate revisions by 2 users not shown) | |||
| Line 13: | Line 13: | ||
} else { | } else { | ||
document.location.href = 'https://www.exagear.wiki/index.php?title=Main_Page | document.location.href = 'https://www.exagear.wiki/index.php?title=Main_Page'; | ||
} | } | ||
| Line 20: | Line 20: | ||
// HIDING ELEMENTS | |||
// ######################## | |||
if( | if( | ||
window.location.href=="https://www.exagear.wiki/index.php?title=Main_Page | window.location.href=="https://www.exagear.wiki/index.php?title=Main_Page" | ||
) | ) | ||
{ | { | ||
var plusLinks = document.querySelectorAll('.pre-content'); | |||
var firstLink = plusLinks[0]; | |||
firstLink.setAttribute('class', 'hidethis'); | |||
} | |||
// ######################## | |||
if(/ | if( | ||
window.location.href=="https://www.exagear.wiki/index.php?title=Main_Page(ru)&mobileaction=toggle_view_mobile" | |||
) | |||
{var plusLinks = document.querySelectorAll('.pre-content'); | |||
var firstLink = plusLinks[0]; | |||
firstLink.setAttribute('class', 'hidethis'); | |||
} | } | ||
// ######################## | |||
if( | if( | ||
window.location.href=="https://www.exagear.wiki/index.php?title=Main_Page | window.location.href=="https://www.exagear.wiki/index.php?title=Main_Page&mobileaction=toggle_view_mobile" | ||
) | ) | ||
{ | { | ||
var plusLinks = document.querySelectorAll('.pre-content'); | |||
var firstLink = plusLinks[0]; | |||
firstLink.setAttribute('class', 'hidethis'); | |||
} | } | ||
// ######################## | |||
if( | |||
window.location.href=="https://www.exagear.wiki/index.php?title=Main_Page(ru)" | |||
) | |||
{var plusLinks = document.querySelectorAll('.pre-content'); | |||
var firstLink = plusLinks[0]; | |||
firstLink.setAttribute('class', 'hidethis'); | |||
} | } | ||