Utilisateur:LikeLifer/common.js
Note : après avoir enregistré vos modifications, il se peut que vous deviez forcer le rechargement complet du cache de votre navigateur pour voir les changements.
- Firefox / Safari : Maintenez la touche Maj (Shift) en cliquant sur le bouton Actualiser ou pressez Ctrl-F5 ou Ctrl-R (⌘-R sur un Mac) ;
- Google Chrome : Appuyez sur Ctrl-Maj-R (⌘-Shift-R sur un Mac) ;
- Internet Explorer : Maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl-F5 ;
- Opera : Allez dans Menu → Settings (Opera → Préférences sur un Mac) et ensuite à Confidentialité & sécurité → Effacer les données d'exploration → Images et fichiers en cache.
(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);
})()