User talk:Js/urldecoder.js: Difference between revisions

Content deleted Content added
Toolbar customization: {{editprotected}}
 
(20 intermediate revisions by 6 users not shown)
Line 12:
 
== Toolbar customization ==
{{editprotected|answered=yes}}
Hi!
 
Line 21:
Best regards,
[[User talk:Helder.wiki|Helder]] 17:08, 14 April 2012 (UTC)
:To be more specific, could you make an <s>[//en.wikipedia.org/w/index.php?title=User:Js/urldecoder.js&oldid=477901295&diff=501000416 update like this]</s> on your script? I think this would solve a problem where it sometimes doesn't insert the button in the new toolbar. [[User talk:Helder.wiki|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. [[User:Rjd0060|Rjd0060]] ([[User talk: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. [[User talk:Helder.wiki|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 — '''''[[User:Mr. Stradivarius|<span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span>]]''''' <sup>([[User talk:Mr. Stradivarius|have a chat]])</sup> 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 [[mw:RL|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. [[User talk:Helder.wiki|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. — '''''[[User:Mr. Stradivarius|<span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span>]]''''' <sup>([[User talk:Mr. Stradivarius|have a chat]])</sup> 07:32, 17 August 2012 (UTC)
 
{{od}} {{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! [[User:Thumperward|Chris Cunningham (user:thumperward)]] ([[User talk:Thumperward|talk]]) 14:52, 23 August 2012 (UTC)
 
== Protocol relative URLs ==
Line 32 ⟶ 40:
/^('''<span style="color: #000; background-color: #9E9;">(?:</span>'''https?:'''<span style="color: #000; background-color: #9E9;">)?</span>'''\/\/|\{\{)/
to match external links such as <code><nowiki>[//toolserver.org/~daniel/WikiSense/CategoryIntersect.php CatScan]</nowiki></code>? [[User talk:Helder.wiki|Helder]] 19:11, 6 July 2012 (UTC)
:{{Done}} I've [https://en.wikipedia.org/w/index.php?title=User_talk%3AAlex_Smotrov&diff=505732905&oldid=503950471 notified] the user that this script belongs to. <nowiki>[</nowiki>[https://en.wikipedia.org/w/index.php?title=User%3AJs%2Furldecoder.js&diff=505732422&oldid=477901295 edit]<nowiki>]</nowiki> [[User:Rjd0060|Rjd0060]] ([[User talk:Rjd0060|talk]]) 12:29, 4 August 2012 (UTC)
 
== Use mw.config.get ==
{{editprotected|answered=yes}}
Hi!
 
Could someone ([[User:TheDJ|TheDJ]], [[User:Js|Js]], [[User:Alex Smotrov|Alex Smotrov]]?) [//en.wikipedia.org/w/index.php?title=User:Js/urldecoder.js&oldid=508786928&diff=570674636 replace each of the <code>wg***</code> variables] by a corresponding call to <code>mw.config.get('wg***')</code>? 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 "<span class="error">Uncaught ReferenceError: wgAction is not defined</span>"). [[User talk:Helder.wiki|Helder]] 00:45, 29 August 2013 (UTC)
:done —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 22:11, 31 August 2013 (UTC)
 
== Support for LiquidThreads ==
 
{{editprotected|answered=y}}
 
Hi!
 
Could someone, possibly {{U|TheDJ}}, 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 [http://www.jshint.com/ jshint] to validate future changes.
 
PS: I tested it [[b:Project:LiquidThreads|on Portuguese Wikibooks]]. [[User talk:Helder.wiki|Helder]] 15:02, 25 September 2013 (UTC)
:Sorry, could you find someone to double-check your code and I will implement. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 08:06, 4 October 2013 (UTC)
::{{U|Krenair}}, {{U|TheDJ}} or {{U|Edokter}}, could you review this for me? [[User talk:Helder.wiki|Helder]] 13:18, 6 October 2013 (UTC)
:::{{done}} &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 12:54, 11 November 2013 (UTC)
 
== Replace updateTooltipAccessKeys by mw.util.updateTooltipAccessKeys ==
{{editprotected|ans=y}}
Since [[gerrit:92457]] was deployed I'm getting the following in the console:
MWDeprecationWarning: Use of [[mw:RL/JD#updateTooltipAccessKeys|"updateTooltipAccessKeys" property is deprecated]]. Use mediawiki.util instead.
Could someone fix this (and also my previous request above =/)? [[User talk:Helder.wiki|Helder]] 12:37, 9 November 2013 (UTC)
:Could you be more specific in what needs to be changed? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 12:56, 11 November 2013 (UTC)
::Thanks! It seems this was already included in the request above. So there is nothing else to fix. [[User talk:Helder.wiki|Helder]] 09:23, 12 November 2013 (UTC)
:::This is now [[Special:Diff/704132074|updated]] to use the new module [https://git.wikimedia.org/blob/mediawiki%2Fcore.git/master/resources%2Fsrc%2Fjquery%2Fjquery.accessKeyLabel.js jquery.accessKeyLabel]. [[User:He7d3r|Helder]] 19:17, 9 February 2016 (UTC)
 
== Obsolete code ==
 
{{edit fully-protected|answered=yes}}
Hi!
 
The [[Special:PermaLink/782699266|current version]] of the script causes this: <blockquote class="error">This page is using the deprecated ResourceLoader module "ext.wikiEditor.toolbar". Please use 'ext.wikiEditor' instead.</blockquote>Could you please replace "ext.wikiEditor.toolbar" by "ext.wikiEditor"? [[User:He7d3r|Helder]] 12:37, 14 May 2018 (UTC)
:[[File:Yes check.svg|20px|link=|alt=]] '''Done'''<!-- Template:EP --> &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 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. — [[User:Diannaa|Diannaa]]&nbsp;<span style="color:red">🍁</span>&nbsp;([[User talk:Diannaa|talk]]) 17:05, 3 September 2018 (UTC)