A small addon that does two things:
- it always remove the mobile prefix from wikipedia links
- it adds a
useskin
parameter to wikipedia links. If the parameter is already given, it won't overwrite it unless the correspondingforce
setting is set.
Just a reminder for myself :-)
The storage API does not work unless an extension ID is set:
- https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/browser_specific_settings
- https://extensionworkshop.com/documentation/develop/extensions-and-the-add-on-id/
zip wikipedia_redirector.zip *.html *.css *.js *.png
https://extensionworkshop.com/documentation/publish/submitting-an-add-on/
Logo source: https://en.wikipedia.org/wiki/File:Wikipedia_logo_gold.png