User talk:Js/urldecoder.js
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)
Toolbar customization
[edit]This edit request has been answered. Set the |answered= or |ans= 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)
- 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)
- 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
[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)
- Done I've notified the user that this script belongs to. [edit] Rjd0060 (talk) 12:29, 4 August 2012 (UTC)
Use mw.config.get
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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)
- done —TheDJ (talk • contribs) 22:11, 31 August 2013 (UTC)
Support for LiquidThreads
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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)
- Sorry, could you find someone to double-check your code and I will implement. — Martin (MSGJ · talk) 08:06, 4 October 2013 (UTC)
- Krenair, TheDJ or Edokter, could you review this for me? Helder 13:18, 6 October 2013 (UTC)
- Done — Martin (MSGJ · talk) 12:54, 11 November 2013 (UTC)
- Krenair, TheDJ or Edokter, could you review this for me? Helder 13:18, 6 October 2013 (UTC)
Replace updateTooltipAccessKeys by mw.util.updateTooltipAccessKeys
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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)
- Could you be more specific in what needs to be changed? — 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)
- 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)
Obsolete code
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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)
- Done — Martin (MSGJ · talk) 06:57, 17 May 2018 (UTC)
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)