User:QEDK/forcedesktop.js

// // Maintainer: User:QEDK // To install this script, use User:QEDK/forcedesktop.js on your skin page, you can access it by typing // Special:MyPage/common.js (or the skin page) into the search bar $(document).ready(function { if(window.location.origin.includes(".m")){	if(window.location.pathname.includes("/wiki/")){		window.location="https://en.wikipedia.org/w/index.php?title="+window.location.pathname.replace("/wiki/","")+"&mobileaction=toggle_view_desktop";	}	else{		window.location=window.location.href.replace(".m","")+"&mobileaction=toggle_view_desktop";	} } }); //