User talk:Js/urldecoder.js
Protocol relative URLs
Hi!
Could you change
'/media/wikipedia/commons/9/91/Link_go.png',
to
'/media/wikipedia/commons/9/91/Link_go.png',
? Helder 11:30, 20 February 2012 (UTC)
Toolbar customization
![]() | This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
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)
- To be more specific, could you make an
update like thison 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 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)
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)
- 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 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)
- 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)
- 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)
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)
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)
Done I've notified the user that this script belongs to. [edit] Rjd0060 (talk) 12:29, 4 August 2012 (UTC)
Use mw.config.get
![]() | It is requested that an edit be made to the interface-protected user page at User:Js/urldecoder.js. (edit · history · last · links · protection log)
This template must be followed by a complete and specific description of the request, that is, specify what text should be removed and a verbatim copy of the text that should replace it. "Please change X" is not acceptable and will be rejected; the request must be of the form "please change X to Y".
The edit may be made by any interface administrator. Remember to change the |
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)