User talk:Js/urldecoder.js

Protocol relative URLs
Hi!

Could you change 'http://upload.wikimedia.org/wikipedia/commons/9/91/Link_go.png', to '//upload.wikimedia.org/wikipedia/commons/9/91/Link_go.png', ? Helder 11:30, 20 February 2012 (UTC)


 * Done. Js (talk) 16:14, 20 February 2012 (UTC)

Toolbar customization
Hi!

On [//en.wikipedia.org/w/index.php?diff=prev&oldid=448162347 this update] you added a comment which says "mw:Toolbar customization is not helpful".

I just wanted to note that it has been [//www.mediawiki.org/w/index.php?title=Extension%3AWikiEditor%2FToolbar_customization&diff=518288&oldid=517840 updated] recently taking into account the recent MW updates, and it may be more helpful now :-)

Best regards, Helder 17:08, 14 April 2012 (UTC)
 * To be more specific, could you make an [//en.wikipedia.org/w/index.php?title=User:Js/urldecoder.js&oldid=477901295&diff=501000416 update like this] on your script? I think this would solve a problem where it sometimes doesn't insert the button in the new toolbar. Helder 20:16, 6 July 2012 (UTC)
 * I'm not sure what exactly you're requesting. Can you be more clear, like below perhaps?  Thanks. Rjd0060 (talk) 12:29, 4 August 2012 (UTC)
 * You just need to copy the [//en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&oldid=505770713&action=edit source code] from the right hand side of [//en.wikipedia.org/w/index.php?title=User:Js/urldecoder.js&oldid=505732422&diff=505770713 this diff]. I've updated it to include also an extra update related to the topic below. Helder 17:26, 4 August 2012 (UTC)
 * ❌ I'm not sure how you want this to be updated. Please write clear instructions about what you would like to be changed. Best — Mr. Stradivarius  (have a chat) 07:50, 15 August 2012 (UTC)
 * The full code is in the sandbox. The only action necessary is to replace the current script by the sandbox version.
 * It fix the missing dependency on ResourceLoader module "ext.wikiEditor.toolbar" (which is required in order to make changes in the toolbar), which will make the button to stop disappearing from time to time. The code also makes the "https" optional in the regex, so it will also work for protocol relative links. Helder 12:30, 15 August 2012 (UTC)
 * Ah, I see, you put it in Sandbox rather than a sandbox specific to this template. I'm not so good with javascript, though, so I'll leave this request for an admin who actually knows what they're doing. Sorry for the delay. — Mr. Stradivarius  (have a chat) 07:32, 17 August 2012 (UTC)

✅: please use a page-specific sandbox next time in order to make it easier to grab your code before it's written over, cheers! Chris Cunningham (user:thumperward) (talk) 14:52, 23 August 2012 (UTC)

Protocol relative URLs
Hi!

Could you replace /^(https?:\/\/|\{\{)/ by /^( (?: https?: )? \/\/|\{\{)/ to match external links such as ? Helder 19:11, 6 July 2012 (UTC)
 * ✅ I've notified the user that this script belongs to. [ edit ] Rjd0060 (talk) 12:29, 4 August 2012 (UTC)

Use mw.config.get
Hi!

Could someone (TheDJ, Js, Alex Smotrov?) [//en.wikipedia.org/w/index.php?title=User:Js/urldecoder.js&oldid=508786928&diff=570674636 replace each of the  variables] by a corresponding call to  ? This would make the script to work on Translatewiki, where these variables are not in the global scope (currently I get error messages such as " Uncaught ReferenceError: wgAction is not defined "). Helder 00:45, 29 August 2013 (UTC)
 * done —Th e DJ (talk • contribs) 22:11, 31 August 2013 (UTC)

Support for LiquidThreads
Hi!

Could someone, possibly, review and make [//en.wikipedia.org/w/index.php?title=User:Js/urldecoder.js&oldid=571002651&diff=574469960 these changes] to the script? It will make the button to appear also when commenting on a LQT thread (e.g. on mediawiki.org). I did some small fixes to the code while updating it, allowing us to use the jshint to validate future changes.

PS: I tested it on Portuguese Wikibooks. Helder 15:02, 25 September 2013 (UTC)
 * Sorry, could you find someone to double-check your code and I will implement. &mdash; Martin (MSGJ · talk) 08:06, 4 October 2013 (UTC)
 * , or, could you review this for me? Helder 13:18, 6 October 2013 (UTC)
 * ✅ &mdash; Martin (MSGJ · talk) 12:54, 11 November 2013 (UTC)

Replace updateTooltipAccessKeys by mw.util.updateTooltipAccessKeys
Since 92457 was deployed I'm getting the following in the console: MWDeprecationWarning: Use of "updateTooltipAccessKeys" property is deprecated. Use mediawiki.util instead. Could someone fix this (and also my previous request above =/)? Helder 12:37, 9 November 2013 (UTC)
 * Could you be more specific in what needs to be changed? &mdash; Martin (MSGJ · talk) 12:56, 11 November 2013 (UTC)
 * Thanks! It seems this was already included in the request above. So there is nothing else to fix. Helder 09:23, 12 November 2013 (UTC)
 * This is now updated to use the new module jquery.accessKeyLabel. Helder 19:17, 9 February 2016 (UTC)

Obsolete code
Hi!

The current version of the script causes this: This page is using the deprecated ResourceLoader module "ext.wikiEditor.toolbar". Please use 'ext.wikiEditor' instead. Could you please replace "ext.wikiEditor.toolbar" by "ext.wikiEditor"? Helder 12:37, 14 May 2018 (UTC)
 * Yes check.svg Done &mdash; Martin (MSGJ · talk) 06:57, 17 May 2018 (UTC)

Script no longer works
This script doesn't seem to be working any more. It's been erratic for the last month or so, and has now stopped functioning altogether. Any help would be appreciated. — Diannaa 🍁 (talk) 17:05, 3 September 2018 (UTC)