MediaWiki talk:Gadget-protectionLocks.js

Link URL encoding
When you click on one of the padlocks, it goes to the intended page correctly. But if the target page is namespaced (they all are) the colon will be encoded to %3A in the URL. This doesn't break anything, unless some userscripts expect an actual colon there, but it just isn't correct. So is it really need to encode the link argument of the mimicIndicator function with encodeURIComponent? The values that get encoded are defined by this same script, it's not user input, so I can't see the harm in just removing this encode function call. – Jack McKalling 17:43, 3 November 2018 (UTC)
 * Removing the URL encoding doesn't seem to break the script. However, the href attribute remains urlencoded even if the call is removed. Also, if there are non-ASCII characters in the link, they'll be urlencoded in the attribute as well.
 * The browser I use (Firefox 63) displays the decoded version of the target page in the bottom left corner in either case. --AttemptToCallNil (report bug, view backtrace) 18:00, 3 November 2018 (UTC)