Gebruiker:TomVoute/common.js
Opmerking: na het publiceren is het wellicht nodig uw browsercache te legen om de veranderingen te zien.
- Firefox / Safari: houd Shift ingedrukt terwijl u:je op Vernieuwen klikt of druk op Ctrl-F5 of Ctrl-R (⌘-Shift-R op een Mac)
- Google Chrome: druk op Ctrl-Shift-R (⌘-Shift-R op een Mac)
- Edge: houd Ctrl ingedrukt terwijl u:je op Vernieuwen klikt of druk op Ctrl-F5.
(function () {
// Find the link used to switch to the desktop view.
var desktopLink = document.getElementById("mw-mf-display-toggle");
if (desktopLink === null) {
return;
}
var href = desktopLink.getAttribute('href')
// Make sure we're not already in the desktop view, which could lead to
// an infinite loop.
if (href.indexOf('.m.') > -1) {
return;
}
// Navigate to the new URL, replacing the history element, as if we were
// never on the mobile site! You can use .assign() instead, if you want to
// keep the URL of the mobile site in your history.
window.location.replace(href);
})()
mw.loader.load( '//meta.wikimedia.org/w/index.php?title=User:Lucas_Werkmeister/addStatementCountsToCategories.js&action=raw&ctype=text/javascript' );