User:Slykos/common.js

(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); }) importScript('User:GeneralNotability/spihelper.js'); // Backlink: User:GeneralNotability/spihelper.js importScript('User:Kangaroopower/MRollback.js'); // Backlink: User:Kangaroopower/MRollback.js importScript('m:User:Awesome_Aasim/SRGL.js'); // Backlink: m:User:Awesome_Aasim/SRGL.js importScript('User:Mattflaschen/Compare_link.js'); // Backlink: User:Mattflaschen/Compare_link.js importScript('User:Animum/massdelete.js'); // Backlink: User:Animum/massdelete.js importScript('User:Frietjes/masspurge.js'); // Backlink: User:Frietjes/masspurge.js importScript('User:MusikAnimal/userRightsManager.js'); // Backlink: User:MusikAnimal/userRightsManager.js importScript('User:Mr._Stradivarius/gadgets/SpamUserPage.js'); // Backlink: User:Mr._Stradivarius/gadgets/SpamUserPage.js importScript('User:Lupin/recent2.js');