User talk:Js/urldecoder.js

This is an old revision of this page, as edited by He7d3r (talk | contribs) at 12:30, 15 August 2012 (Toolbar customization: It fix the missing dependency on RL 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 "h). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Latest comment: 13 years ago by Helder.wiki in topic Toolbar customization

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)Reply

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

Toolbar customization

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

Protocol relative URLs

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