User talk:Js/urldecoder.js

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Protocol relative URLs[edit]

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)[reply]

Done. Js (talk) 16:14, 20 February 2012 (UTC)[reply]

Toolbar customization[edit]

Hi!

On this update you added a comment which says "mw:Toolbar customization is not helpful".

I just wanted to note that it has been 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)[reply]

To be more specific, could you make an 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)[reply]
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)[reply]
You just need to copy the source code from the right hand side of this diff. I've updated it to include also an extra update related to the topic below. Helder 17:26, 4 August 2012 (UTC)[reply]
 Not done 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)[reply]
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)[reply]
Ah, I see, you put it in Wikipedia: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)[reply]

 Done: 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)[reply]

Protocol relative URLs[edit]

Hi!

Could you replace

/^(https?:\/\/|\{\{)/

by

/^((?:https?:)?\/\/|\{\{)/

to match external links such as [//toolserver.org/~daniel/WikiSense/CategoryIntersect.php CatScan]? Helder 19:11, 6 July 2012 (UTC)[reply]

 Done I've notified the user that this script belongs to. [edit] Rjd0060 (talk) 12:29, 4 August 2012 (UTC)[reply]

Use mw.config.get[edit]

Hi!

Could someone (TheDJ, Js, Alex Smotrov?) replace each of the wg*** variables by a corresponding call to mw.config.get('wg***')? 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)[reply]

done —TheDJ (talkcontribs) 22:11, 31 August 2013 (UTC)[reply]

Support for LiquidThreads[edit]

Hi!

Could someone, possibly TheDJ, review and make 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)[reply]

Sorry, could you find someone to double-check your code and I will implement. — Martin (MSGJ · talk) 08:06, 4 October 2013 (UTC)[reply]
Krenair, TheDJ or Edokter, could you review this for me? Helder 13:18, 6 October 2013 (UTC)[reply]
 Done — Martin (MSGJ · talk) 12:54, 11 November 2013 (UTC)[reply]

Replace updateTooltipAccessKeys by mw.util.updateTooltipAccessKeys[edit]

Since gerrit: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)[reply]

Could you be more specific in what needs to be changed? — Martin (MSGJ · talk) 12:56, 11 November 2013 (UTC)[reply]
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)[reply]
This is now updated to use the new module jquery.accessKeyLabel. Helder 19:17, 9 February 2016 (UTC)[reply]

Obsolete code[edit]

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)[reply]

 Done — Martin (MSGJ · talk) 06:57, 17 May 2018 (UTC)[reply]

Script no longer works[edit]

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)[reply]