Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I got annoyed at this enough to write this tiny userscript:

    // ==UserScript==
    // @name         Redirect from mobile wiki to desktop
    // @namespace    http://tampermonkey.net/
    // @version      0.1
    // @description  try to take over the world!
    // @author       You
    // @match        https://*.m.wikipedia.org/*
    // @grant        none
    // @run-at       document-start
    // ==/UserScript==
    
    window.location.hostname=window.location.hostname.split(".")[0]+".wikipedia.org";


Hint: Use `document.location.replace()` to prevent the back button from going back to the mobile version, creating an endless loop.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: