Hi, There is request - Task Maniphest T222146, to include the https:// when shortened URLs are generated at https://meta.wikimedia.org/wiki/Special:UrlShortener. I would like to request a add a "button ( Wiki URL)" " (like "Cite" / "Link") on the menu bar on top or as one of drop down list on the "More" section of the Wikipedia page so editors dont need to go to WikiMedia page to get the URL shorten. Kindly advise if this a workable request.
Here's a bookmarklet that uses the API if it has access to credentials, or will redirect to the special page for other domains (e.g. on phabricator):
Here's how this looks on-wiki:
If you are off-wiki (e.g. on Phab) you get redirect to the special page:
This could also be easily converted into a browser extension...
There's also a gadget at Frwiki: https://fr.wikipedia.org/wiki/MediaWiki:Gadget-ShortenUrl.js
Which can be added to your global.js with