979 points · by sjdz · 4y ago · 409 comments
I made this free browser extension that modernizes the Wikipedia design. I started making this for myself just because I wanted more of a "reader mode" like experience (narrower column, nicer fonts, dark mode etc). Then I got a bit carried away and implemented everything I could think of for a modern redesign of Wikipedia. Hope you like it!
But i am sure there are people who will appreciate your effort. Thank you for your work.
edit: formatting
You may find humour in the comically small "desktop" link at the very end of the page, next to the privacy policy.
// ==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";I agree, although in the case of Wikipedia the "mobile" design is actually the one that is responsive. I want the "mobile" design on all browsers including my desktop. I believe you can actually set your default theme if you're logged into Wikipedia, but I don't know if their cookies eventually expire or what, but I often end up clicking on Wikipedia links and getting the awful "desktop" design.
All of this is just to say that, yes, they shouldn't use separate "m." URLs, but it's just as wrong to get upset at mobile users sharing "m." URLs as it is to get upset at desktop users sharing URLs without the "m." Arguably if you expect all users to always share the most versatile URL, you should expect them to always share the "m." URL since it has a responsive design.
Also the mobile site might be more responsive in the sense that it better scales down to narrower viewports but it does not scale up to make use of larger viewports by e.g. bringing back the sidebar and other links that are hidden behind dropdowns. That's a problem with many mobile-first designs - in reallity they are mobile-only designs.
I’m career military and the fact that Wikipedia (and Facebook) have low bandwidth m.* redirects made life immensely easier on the limited internet in far off places. We really appreciated it being available.
https://en.wikipedia.org/wiki/Yugoslav_gunboat_Beli_Orao - 913.39 KB / 298.41 KB transferred
https://en.m.wikipedia.org/wiki/Yugoslav_gunboat_Beli_Orao - 919.43 KB / 270.18 KB transferred
Not much of a difference. Would be better to spend time optimizing the desktop site for everyone.
On a phone, the mobile Wikipedia is perfect tho.
However, that link is totally in the wrong place, no wonder I could not find it. I just assumed there was no such link/button and always angrily removed the 'm.' from each URL.
https://addons.mozilla.org/en-US/firefox/addon/skip-mobile-w...
They used to just put "?s=19" through "?s=22" or so, which enumerated clients (desktop, mobile, Android, etc), which was better than the junk most other services stuff in (like utm_source and friends...)
The chasing left side TOC is really useful. The typography is slightly fancy without trying to be in your face.
The search (kbd /) is nice too.
I'd motivate the author to experiment with more stuff around accessing categories and hyperlinks in the page.
Fortunately this is pretty simple to disable with Greasemonkey (also 's' on github, though the userscript doesn't seem to work on Gitlab...).
If "new" were to become the only way to access Reddit, I would probably abandon it.
I can suggest wiby.me 's random button to discover new sites with modern opinions.
On mobile you seem to need to do old.reddit.com every time.
Never installed the app on mobile.
And even then, browsing /r/popular is just awful. Elimination games. People blatantly asking for personal information from teenagers. "Tell me your favorite X and we will judge you" Dumb NSFW 'questions'. Repost bots for content from years ago. Misinformative titles. "Unpopular opinion" threads.
It's a mountain of trash to wade through to get any decent content.
That might have been their goal?
Although I detest having to use apps for every site. The Reddit app is also super buggy.
Chrome plugins add more unwelcome startup bloat to the web browser, and while they are super useful to fix the UI issues of commercial, copyrighted websites, Wikipedia can totally legally be replicated at another domain.
Also just like with open source projects, just because you are allowed to fork does not mean that you should as you could end up hurting the original project by e.g. confusing users.
I'm not sure I like it. The better line width is really welcome, but I'm tad uneasy about the rest. And as far as I can recall, it doesn't have a dark theme (yet).
I miss the Encarta encyclopedia content/design. I wish Wikipedia could get to that level of content quality. The multimedia and interactive articles were way ahead of its time and were only partially matched by some Flash-based interactive animations.
You don't need 20MB React bundles to make a good-looking website, and OP proves that perfectly
Actually, I'm wrong. It looks like they FINALLY added it less than a week ago.
Took them long enough.
This is exactly how CSS and HTML were intended to operate and the kind of results to be expected.
> But i am sure there are people who will appreciate your effort. Thank you for your work.
How is that called ? A complimentsult ?
That being said, I want someone to do the opposite of what this does. Less chrome, less bytes over the wire, less predictive search, less "flatness?", less timely, more timeless.
I miss windows having borders. Just dug up a registry hack (obscene that such a thing was needed) to force win10 to have window borders again, because I keep ending up in situations where I honestly couldn't tell where one ends and the other begins.
They spent decades researching and building interfaces with visual cues, and we spent decades tuning our reflexes to them. Then some whim of fashion decided that hiding all those cues was "smoother", and I want to choke someone.
I think that also has to do with "more white space = more scrolling = more ads".
Reddit is a perfect example of this. When they "updated" their UI to the current one, they added a ton of extra white space which forced people to scroll longer, thus spending more time on the site and viewing more ads. They also use a ton of other dark patterns.
Even if it selects all the right elements, syntax highlighting doesn’t work which is an issue for me since a lot of the articles I read involve code.
These are issues with every reader mode I’ve tried – iOS Safari, iOS/desktop Firefox, desktop Chrome.
I wish there were a standard CSS media type that sites could implement, like `@media reader`, to help specify which elements should be included and to support things like syntax highlighting.
But... that's the opposite of what was asked for. Adding an extension adds more of the bad. A patch for Firefox reader mode would be better in my opinion since the web itself won't become better.
If you don't have an account you can add ?useskin=skinname to end of url to trigger different skins.
E.g. https://en.wikipedia.org/w/index.php?title=Main_Page&useskin... and https://en.wikipedia.org/w/index.php?title=Main_Page&useskin...
For anyone curious, MS has a useful summary of how this works here: https://support.microsoft.com/en-us/windows/snap-your-window...
https://encyclopedia.marginalia.nu/wiki-start.html
(I built this mostly for myself, because I find it incredibly difficult to read text that has hyperlinks and images in the text)
In part this is because I feel inline links on wikipedia often lets you overestimate how well you comprehend a subject. It's as though the fact that there is a link over a word makes you think you could go check what that is, and therefore that you probably understand the word.
Actually looking up some term mid sentence is also probably not particularly helpful for understanding the text either.
I concede that this is a somewhat unusual decision, but I designed the pages for the singular purpose of reading and comprehending the article. Everything else is secondary. It's a bit of a design experiment, but I think it's worked out pretty well. I don't fall into skim-reading these articles like I must admit I often do with regular Wikipedia articles.
Have you considered images just take up full width?
Wikipedia is a pretty big website, and (like the rest of my web presence) I'm hosting the mirror on a single small consumer hardware server. I'm keeping all the wikipedia pages as compressed HTML, and if you look at the sources you'll see it's very bare bones, most pages are like 50 Kb, yet the total is still 21 Gb. I don't think I have the space or bandwidth for selfhosting all of wikipedia's images.
Part of this experiment is to illustrate just how ridiculously large page loads on a lot of pages. Even text-heavy ones like Wikipedia.
If you compare the HTML payload alone of these two renditions of largely the same text, it's a 50x difference. The full Wikipedia page load exceeds 1 Mb, mine isn't even 10 Kb.
https://en.wikipedia.org/wiki/Scamander
https://encyclopedia.marginalia.nu/wiki/Scamander
That's kinda ridiculous.
I'm not sure if this is a subtle reference,but one of the major competing skins for wikipedia is named timeless: https://en.wikipedia.org/wiki/Main_Page?useskin=timeless (its often quite popular among people using phones who find the official mobile website frustrating)
To be honest, while this looks pretty, it’s really just Wikiwand 2.0.
I always found it weird and annoying how the table of contents in Wikipedia is a tiny thing jammed at the start. It's so darn awkward to use.
- If the browser window is narrower than about 1024px, there are no margins around the body text and the text width slider has no effect.
- As the browser window becomes narrower, the body shrinks but the contents sidebar doesn't shrink.
- The measure feels a bit small to me. It looks like the body text width is limited to 660px — having a limit is good, but it feels tight, especially when there are embedded figures and infoboxes. You could try making the measure a bit larger, or perhaps letting the figures extend or sit outside the main column of text when the window is wide enough.
- When you turn off the sidebar by clicking the three-bar icon, the sidebar just leaves an empty space instead of providing more space for the body text.
- As the window becomes narrow enough, the search box becomes unusable.
- The page indicators like the "featured article" star, the protection icon, and the Spoken Wikipedia button are missing.
- The home page, talk page, history page, etc. don't respect the typography settings.
- The menu option "View history" is inconsistent with the other options; next to "Talk", "Edit", "Watch", simply "History" would work better.
- When you scroll down, the page title scrolls off the main body, but remains at the top of the table of contents. Somehow this feels backwards to me, and it's not immediately obvious that you have to click the title in the table of contents if you want to see the intro section. Perhaps the page title could be sticky, and the first section could appear as "Introduction" in the contents? Something like this? https://imgur.com/a/kqaNbWo — I'm not sure where to suggest that the page title should go; you might have to try a few options to find one that looks right.
Sorry that turned out to be a long list, but overall the page does look a lot nicer and easier to read and navigate. Hope these ideas are helpful!
[0]https://en.wikipedia.org/wiki/International_Phonetic_Alphabe...
The app supports 4 reading themes, is privacy friendly, includes: truly private reading history, trending articles, a persistent TOC on iPad, on this day in history, language and multilingual support, in the news, random articles, bookmarking and folder-ing capabilities, a way to view Wikipedia articles on an interactive map, a wikitext editor with syntax highlighting, updated article history views (with easy to read diffs), widgets, predictive search (you can even search with emojis if you please) and very soon editing notifications.
We're a small team (1.5 designers, 3 engineers, an engineering manager and a PM) and we're really passionate about making a beautiful and usable experience for readers and contributors on iOS.
I'm the lead designer/design manager and have worked on this project for five years. Commenting just as myself though (thoughts are my own and not the Foundation's), as a person who loves Wikipedia and design and is proud of the work my coworkers have done.
If you're interested you can check the app out here: https://apps.apple.com/us/app/wikipedia/id324715238
I do have a question: Wikipedia on mobile is insanely fast. Much faster than the desktop or mobile site. What media APIs do you use to pull the content for the mobile app?
- Move the search button from the top right (very hard to reach) to the bottom menu (or some other more reachable place)
- When using “auto dark mode”, allow me to choose the not-pitch-black dark theme
Check this out: https://en.m.wikipedia.org/wiki/Chuck_Yeager
It's nicely justified for reading. Superfluous interface is almost entirely eliminated compared to desktop view. It's just such a clean, elegant view for reading a Wikipedia page.
This came up in a recent HN post so I published a user script I had written to automatically switch to the mobile version. You can also switch manually between mobile and desktop with ⌘ + M or ctrl-M. If you've switched to desktop and click on a link, it stays in desktop mode (it would be jarring otherwise if it kept flipping between modes). You can also edit the page with ⌘ + E or ctrl-E (opens in desktop mode since the mobile editor is pretty limited).
Install it here: https://greasyfork.org/en/scripts/431384-switch-to-mobile-wi...
It’s not even close anymore: reading is just so much easier when it’s a narrow column.
Wiki pages are like 95% text to read.
https://www.mediawiki.org/wiki/Reading/Web/Desktop_Improveme...
The English Wikipedia isn't one of the "early adopter wikis" but if you visit, say, the French-language Wikipedia you can see the changes (e.g., different width to improve readability).
A classic article about why: https://infinnie.github.io/blog/2017/systemui.html
In this particular case, it totally ruined the fonts of Wikipedia for East-Asian (CJK) Windows users.
Just in case the article itself isn't convincing enough, below is a list of some websites that have tried "system-ui" and then reverted it semi-immediately:
Facebook/bootstrap, GitHub, Twitter, Stack Overflow...
As for old versions of Windows… well, one should probably look at their target market/user base. If your demographic is firmly Roman western use of system-ui is probably fine — as far as I’m aware, the bulk of remaining users of XP/7 are in East Asia, chiefly China.
So MS should fix this and until then you shouldn't use system-ui.
I don't see any reason to make any effort to support those folks, especially when the font is merely ugly in a cosmetic sense, and not unreadable.
Actually, "system-ui" doesn't even do anything in Firefox on Windows right now (and it behaves exactly like -apple-system on MacOS), so you shouldn't rely on it anyway.
You can, of course, choose different themes.
But you can also upload custom CSS and Javascript!
Link to image of preferences page - https://ibb.co/Kbfh1QQ
[1]: https://www.mediawiki.org/wiki/Manual:How_to_make_a_MediaWik...
sjdz, the work you have done putting this layout together is awesome!
Narrower columns? Adjust the width of your browser window. Nicer Fonts? Those should be a user preference, not served by website - I see the OP agrees with this... Dark Mode? That should be a function of the DE, or maybe the browser, but not the web site.
Everything about this work says "I want to control the look of web pages on my end."
> "Technically this permission allows observing the history via chrome.tabs.onUpdated, but not read the previously existing history, so the phrasing is not entirely correct, strictly speaking."
https://stackoverflow.com/questions/64063754/chrome-extensio...
To be clear, the extension doesn't access your browsing history at all. The "tabs" permission is just used to find Wikipedia tabs and enable/disable the new design when using the toggle from the browser popup.
The permissions requested (in the manifest.json file) are:
"permissions": [
"tabs",
"storage",
"*://*.wikipedia.org/*"
]
I will change that to "activeTab" in the next update which should fix it.I want WP to solve this with NLP.
[1]: https://en.wikipedia.org/wiki/Wikipedia:Unsolicited_redesign...
Having said that; Reader mode solves most of the above issues.
It might be better to leave it up to users, because it's a very common complaint on many sites where text width is limited.
i have a huge 4k monitor and always open many browser tabs at once, some tabs I don't want the window to be narrow on, and others might be wikipedia
with this when I switch to my wikipedia tab i can just read it and it's very pleasing to the eye
https://en.wikipedia.org/w/index.php?action=edit&title=Speci...
(Note: the theme here was picked at random from MediaWiki's `Manual:Gallery of user styles`, so... I disclaim any implication that it's a good theme. In fact, it must be bad - the link for this theme is to `en.m.wikipedia.org` !!!)
I hope you know that your browser can have multiple windows.
* It seems to constrain the width to something even smaller than usual (800px?). I have 6000px of horizontal real estate, and while it would be mad to let text run to that length, the optimum is not what a phone can do. (I've tried to find out what "native" width is here, but I'm getting full-width no-constraint layouts with Firefox (no plugin, not logged in), 800px with the plugin (Chrome, logged in) and something in between (Safari, logged in).
* It hides links I regularly use behind menus (to the discussion page and version history).
I guess 9x% of people never edit Wikipedia and it might make sense to cater to them. But, then again, I'm not sure if it's the best idea to actively hide the fact that they could contribute. I also don't see as much of a difference to the mobile layout that is planned to slowly become default on desktop as well.
Edit: I found the slider to adjust page width. That's thoughtful!
Things I like about it: * always-visible TOC * it's much easier to parse visually - smaller footnote numbers and many similar small adjustments to font, alignment, etc.
Things I don't mind actually * fixed (smaller) width
Either way, this is the spirit of the web - everyone can remix and format as they like.
compare: https://www.wikiwand.com/en/Hacker_News https://en.wikipedia.org/wiki/Hacker_News?oldformat=true
https://addons.mozilla.org/en-US/firefox/addon/wikiwand-wiki...
This looks amazing!
I personally wouldn't install it. I don't like cluttering my browser with too many extensions and I don't use Wikipedia enough for it to be worth it.
But well done.
Also, it appears a little broken on maths-heavy pages. See https://en.wikipedia.org/wiki/Fourier_series.
Multi-line equations get displaced by the pictures on the side, some even appearing with a horizontal scroll bar. Lots of strange white-space in some equations.
I've tried many of these over the years and always hope I'll find one I like. This is probably the best so far, but I ended up uninstalling it after about 2 minutes of experimenting for the following reasons:
- The left side-bar text is too big
- I actually prefer Arial/Helvetica to the typeface you chose
- Formatting of—not sure what they're called, but the place where disambiguation notices pop up at the top of the article under the title—feels a little off
As was mentioned in this discussion, it's also worth noting that mediawiki supports custom themes. Anyone else use an alternate wikipedia theme? I've been using "Modern" for years and love it.
1. Left menu scroll bar defaults to the hideous browser default scroll bar. 2. When increasing the width of the content just a bit, it becomes left adjusted all of a sudden, hugging the left menu and leaving tons of room on the right.
It is fine for reading, but by hiding the tabs for "edit this page", "history" etc. it does not invite editing as much as the current Wikipedia/MediaWiki does.
And in this particular case, I don't see much purpose of having the toolbar being a fixed element that does not scroll with the rest of the page. Apart from the Font size/Dark mode controls, the links there are for leaving the page, and if I want to leave the page, there is nothing stopping me from first scrolling to the top of the page. Most keyboards have a Home key that does that. There is also the "Scroll to the top" arrow button that pops up in the lower right corner (obscuring the text beneath it, BTW).
Something I do think would be useful, in terms of scrolling on Wikipedia/MediaWiki would be to go between Editing, Preview and Changes and keep about the same position on the page when doing so. As it is now, long articles could be disorienting and I would have to spend some time looking for the editing position when previewing my edits.
I am curious I don't think Wikipedia does it/would do it but I have seen some sites break if you modify their DOM.
I think including CSS overrides would be different but YT is an example where injecting something into their DOM has an error show up in console.
Wondering if that was a concern for you.
I tried out Readable Wikipedia [0]. Which I really liked (kind of turns it into mobile, which is good enough for me) But it seems to have been abandoned, since images didn't load for me.
I then tried out WikiWand [1]. Although I've been using it and its been ok for the most part, it seemed over the top, and the UI was still a bit dated. Also, didn't like how it would load images in a banner view at the top...
I look forward to trying this out, looks very promising. Thanks for spending the time to make it!!
[0] - https://chrome.google.com/webstore/detail/readable-wikipedia... [1] - https://www.wikiwand.com/
My one sadness— no Safari support! Safari has gotten better with its extensions API support.. is it just the the store that’s preventing you?
[1]: https://github.com/Krasjet/wikipedia.rehash#user-content-opt...
Humble suggestion: add some background shading to visually group an image with its caption, mock eg: https://postimg.cc/hJLrJF9N
I guess that's what wikipedia portals are for?
For example I would love to be able to download a wikipedia archive just for math, computer science or history, etc, just like subject are found in an university, library or the dewey or congress classification.
Of course it's a lot of work, but I really feels it's important and it would make wikipedia more accessible and attractive, and also cheaper to distribute.
I absolutely adore the positioning of the table of contents. The design looks clean, utilitarian, and overall well executed.
That being said - and this is more a critique of modern design - I absolutely hate the suffocating roundness of the element corners. It's an aesthetic that drips with overfamiliarity and a patronizing attitude. It's the visual equivalent of being put in a padded room, or having a distant relative who you have nothing in common with and have not seen in years trying to relate to you with anecdotes about your childhood that you can scarcely remember.
There is a long history of rounded corners in graphic design. In the real world, perfectly sharp edges do not exist. Even on the printed page, ink bleed tends to gently round all corners.
This is a good thing, because sharp corners interact poorly with some parts of our visual system. Sharp corners in a design can be as jarring as extremely high contrast or saturated colors, which are also best avoided in designs where the intent is to let the viewer focus on the content and not the form.
A slight amount of corner rounding in digital graphic design can lead to a look that is easier on the eyes, less distracting, and more approachable. (The design here uses more rounding than necessary, but I think it's driven largely by fashion and the above principles and not some dystopian desire to infantilize you.)
See:
https://en.wikipedia.org/wiki/Grid_illusion
https://en.wikipedia.org/wiki/Lateral_inhibition
https://en.wikipedia.org/wiki/Pattern_glare
http://people.sunyit.edu/~lepres/thesis/principles/63_pdfsam...
http://macknik.neuralcorrelate.com/pdf/articles/troncoso_et_...
Even very round corners can be contextually appropriate.
There's a world of difference between a few pixels of roundness, and making your entire website look like a fisher-price toy.
Round, organic designs can be complex and visually pleasing. They take a lot of work to execute well, and are rarely confined to the simple rectangles that dominate modern interface design.
The large border radius on modern UIs doesn't contribute anything interesting to previous UX other than the novelty of round corners. It hasn't been motivated, or motivated any meaningful new design approaches. All it's accomplished is that it's turned UI elements into rectangular pills that function almost exactly as they did before.
I see it as an aesthetic reflection of the modern technologist's attitude towards their user-bases.
Edit:some grammar
Have you seen Android 12's new fisher-price UI? I would really love to hear your thoughts on this video:
Client usually wants to emulate some elements of the latest aesthetic trend. Can't blame designers for what's ultimately a fashion trend. Especially when breaking from the trends and convention put you at risk of looking dated or driving away consumers.
Edit: some grammar
Edit: At some point, while you can agree with some of the critics' points, they become completely out-of-touch with reality and the typical user.
One big thing many could learn from, from the standard Wikipedia, and where this "modern" alternative fails, is the use of icons. Wikipedia mainly use text labels, not icons, which mean that I don't have to guess what the three dots mean. When going to Wikipedia, it very clearly states that I am in fact "Not logged in", this modern UI just have the person icon, but am I logged in? Similarly there's a small clock with an arrow, if I don't understand that Wikipedia is versioned, I have no idea what that does. The "view history" is much more clear, even if "View page history" would be even better.
It's pretty fun to play around with alternative designs for pages like Wikipedia, but actual updates should be done because it improved usability, not because it fails to follow trends that will change in a few years anyway.
There's also a small padding issue[1] next to the sidebar when the column width is set high.
Otherwise it looks pretty good.
[0]: https://jagger.co/downloads/modern-wiki-wide.png [1]: https://jagger.co/downloads/modern-wiki-padding.png
I really like this though!
This is how it looks for me: https://imgur.com/jZcbtUM
The main text is just too narrow. There's enough empty space to the right of the bodyContent div for the infobox without squeezing the text like that.
I'm thinking, it should be something like this: https://imgur.com/arNwTDr
https://en.wikipedia.org/w/index.php?title=Main_Page&useskin...
Can I suggest a specific font for Persian language? At the moment there is a single font for all languages, but Wikipedia manages it very well, and it has a different font for different languages.
Please remember from design 101 that line and shape have meaning and can help the user understand the interface.
I don't know why but since at least a year we have a new design on the french version of wikipedia (you can check by yourself on any wikipedia page in french).
But the english UI is bad it's hard to read on large screen. With your extension is really nice.
edit: I do need to uncheck the "Use Legacy Vector" to have the new design. I don't know why, maybe it was a cache issue but now it works.
If “modern web UI” means “performs none of the functions of a web Ui” then you nailed it.
I think I would prefer rhe current Vector theme (or maybe Monobook, but definitely not thr Fandom one), but it would be fairly great to have a dark mode.
Thank you for your work!
Confluence does this and it drives me nuts.
> Modern for Wikipedia only works on desktop or laptop computers
Urgh. Mobile probably represents 90% of Wikipedia traffic. I am on mobile now, of course. I am sad.
The original version has got to be one of the most dreadful pages on the internet, designed by committee and looks like it...
One request right away: can you add a setting to add phantom space at the bottom of the page? I don't know if it has a proper name, but editors sometimes have a "virtual space" setting so you can scroll the last bit of the content to the top of your screen.
It's super helpful when you want to click on one of the last on-page heading anchors and it doesn't really scroll to that part of the page because there's not enough room to scroll it. If that makes sense...
Nice work!
A lot of HN tends to dislike anything "new", please don't let it get to you :)
Now all I need is a web extension that helps me stop hating contributing to Wikipedia.
Unfortunately, this "modern" UI (larger font, narrow width) causes the exactly same problem on desktop.
More space makes thing easier to read, though. You could have font size 8 and a couple hundred chars long lines on your 4k monitor. Would see lots of content, but would be unreadable.
Does it still present the fundraising banners?