Hacker News new | past | comments | ask | show | jobs | submit login

Using Wikipedias language switcher to translate things seems to be quite common here, so I thought I'd share how I moved the languages up on top, so I don't have to scroll down on smaller screens or when zoomed in.

In `<firefox-profile>/chrome/userContent.css` I wrote the following:

    @-moz-document ___domain(wikipedia.org) {
        #mw-panel {
            display: flex;
            flex-direction: column;
        }
        #mw-panel nav {
            order: 9;
        }
        #mw-panel nav#p-logo {
            order: 1;
        }
        #mw-panel nav#p-lang {
            order: 2;
        }
    }
This is only for Firefox, but imho that is the… least bad browser anyways ;)



Actually, if you have a Wikipedia account, you can save custom CSS (and even JS?!) to your account:

https://en.wikipedia.org/wiki/Special:Preferences#mw-prefsec...


Yes — custom gadgets and user scripts are quite common! It fits in with the ethos of the place, but is quite remarkable compared to nearly any other popular website.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: