When you visit the desktop version of a Wikimedia page, you will be taken to the mobile-optimised page instead

Latest Version

Version
1.3.5
Update
December 13, 2023
Size
15.08KiB
Developer
beingmrkenny.co.uk
Category
Users
89
Rating
5 ★
Manifest Version
3
Web Store Status
Languages Support
English (UK)
See more
Permissions
Storage
See more

Redirect to mobile site for Wikimedia pages Extension

The mobile-optimised pages of Wikimedia sites are often easier to read than the desktop version. With this extension, when you visit the desktop version of a Wikipedia or Wiktionary article (or any article on a Wikimedia site), you will be taken to the mobile-optimised version of that page instead.

For example, if you visit https://en.wikipedia.org/wiki/Photosynthesis you will be taken to https://en.m.wikipedia.org/wiki/Photosynthesis. If you visit https://en.wiktionary.org/wiki/botany you will be taken to https://en.m.wiktionary.org/wiki/botany. The exception to this is if you are editing an article. In that case you will be taken to the desktop version of the site, which you may find easier to use and more fully-featured when editing.

You can control this extension with the toolbar menu, which allows you to switch it on or off, and whether it should take you to the desktop version to edit an article.

If you would like to see the code that powers this extension, please see the GitHub repository here: https://github.com/beingmrkenny/WikimediaRedirect
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "Redirect to mobile site for Wikimedia pages", "short_name": "Wikimedia Mobile Redirect", "description": "When you visit the desktop version of a Wikimedia page, you will be taken to the mobile-optimised page instead", "author": "Mark Kenny", "homepage_url": "https://beingmrkenny.co.uk/web-extensions/wikimedia-mobile-redirect", "version": "1.3.5", "icons": { "16": "img/16.png", "48": "img/48.png", "128": "img/128.png" }, "permissions": [ "storage" ], "content_scripts": [ { "include_globs": [ "http://*.wikibooks.org/*", "http://*.wikidata.org/*", "http://*.wikimedia.org/*", "http://*.wikinews.org/*", "http://*.wikipedia.org/*", "http://*.wikiquote.org/*", "http://*.wikisource.org/*", "http://*.wikiversity.org/*", "http://*.wikivoyage.org/*", "http://*.wiktionary.org/*", "https://*.wikibooks.org/*", "https://*.wikidata.org/*", "https://*.wikimedia.org/*", "https://*.wikinews.org/*", "https://*.wikipedia.org/*", "https://*.wikiquote.org/*", "https://*.wikisource.org/*", "https://*.wikiversity.org/*", "https://*.wikivoyage.org/*", "https://*.wiktionary.org/*" ], "js": [ "URLProcessor.js", "script.js" ], "matches": [ "http://*.wikibooks.org/*", "http://*.wikidata.org/*", "http://*.wikimedia.org/*", "http://*.wikinews.org/*", "http://*.wikipedia.org/*", "http://*.wikiquote.org/*", "http://*.wikisource.org/*", "http://*.wikiversity.org/*", "http://*.wikivoyage.org/*", "http://*.wiktionary.org/*", "https://*.wikibooks.org/*", "https://*.wikidata.org/*", "https://*.wikimedia.org/*", "https://*.wikinews.org/*", "https://*.wikipedia.org/*", "https://*.wikiquote.org/*", "https://*.wikisource.org/*", "https://*.wikiversity.org/*", "https://*.wikivoyage.org/*", "https://*.wiktionary.org/*" ], "run_at": "document_start" } ], "action": { "default_title": "Redirect to mobile site for Wikimedia pages", "default_popup": "popup.html", "default_icon": "img/buttonIcon.png" }}
Read more