Hacker News new | ask | show | jobs
by mcnesium 2090 days ago
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 ;)
1 comments

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.