User:Gokudera ElPsyCongroo/global.js
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* Utiliser la version desktop de Wikipedia */
//mw.loader.load( "https://en.wikipedia.org/w/index.php?title=User:%C3%9Ejarkur/NeverUseMobileVersion.js&action=raw&ctype=text/javascript" );
/*
Redirect mobile Wikipedia to Wikiwand
*/
/*
if(window.location.href.match(/^https?:\/\/[^.]+\.m\./)) {
var urlParts = window.location.href.split('/')
var baseWikipediaUrl = urlParts[2]
var language = baseWikipediaUrl.split('.')[0]
var articleTitle = urlParts[4]
var wikiwandUrl = "https://www.wikiwand.com" + "/" + language + "/" + articleTitle
window.location.href = wikiwandUrl
}
*/
/*
//Afficher les nombres de la TOC
var toc = document.querySelector('#toc');
if (toc) {
document.querySelectorAll('.mw-parser-output :is(h1,h2,h3,h4,h5,h6) .mw-headline').forEach(function (headline) {
var num = toc.querySelector('a[href="#' + CSS.escape(headline.id) + '"] .tocnumber');
if (num) headline.prepend(num.textContent + ' ');
});
} else {
document.body.classList.add('tpl-autonum');
}
*/