MediaWiki:Mobile.js: Difference between revisions
No edit summary |
No edit summary |
||
| (9 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'; | ||
} | } | ||
} | |||
// HIDING ELEMENTS | |||
// ######################## | |||
if( | |||
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( | |||
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( | |||
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'); | |||
} | } | ||