User:Js/urldecoder

[http://meta.wikime… …

Page

urldecoder is a userscript for easy pasting of links into wikicode.

How to use it:
 * paste any URL
 * (if desired) type a blank space and then the link name (what will be displayed):


 * select (highlight) the text you want decoded
 * press the [[file:Link_go.png|16px|urlDecoder button]] button to get this:

The script will:
 * automatically add brackets to form an external link,
 * make it an internal link (if possible) using most Interwikimedia prefixes,


 * percent-decode URL:  →
 * which is mostly useful in non-Latin wikis where most URLs look like
 * convert (now outdated) secure.wikimedia.org links to normal.

The script will simplify all URLs inside the text you select; it is not limited to processing a single url.

Installation
Add this to your js file: For other MediaWiki projects: