User talk:PleaseStand/Archive 6

References segregator
I am curious about the script for this tool. Why does your script use quotation marks when all other scripts I've installed use apostrophes? Is this an error? My76Strat (talk) 04:36, 27 April 2013 (UTC)
 * What other scripts? RefToolbar 2.0 generally uses double quotes for ref names consisting of two or more space-separated words. (Unlike my script, it leaves single-word ref names unquoted.) PleaseStand (talk) 05:13, 27 April 2013 (UTC)
 * Thank you. I am having trouble using this tool at the moment. I intend to triumph however. Perhaps I should not have added the script to my /css page? My76Strat (talk) 05:24, 27 April 2013 (UTC)
 * All  lines for user JavaScript must go in User:My76Strat/vector.js, and not in User:My76Strat/vector.css, which is reserved for Cascading Style Sheets code. (As JavaScript code,   lines also belong in vector.js.)


 * However, your problem is most likely that the statement " " and the comment " " have become separated from each other, and the latter is a syntax error when on its own line outside a comment block. PleaseStand (talk) 05:40, 27 April 2013 (UTC)
 * Yes that was my exact problem. I appreciate the insight you've shared. Best regards, My76Strat (talk) 06:11, 27 April 2013 (UTC)
 * Yeah, sorry for my confusion over your question. The actual answer is that just as with ref names, JavaScript allows a string literal (as in the  line) to be either single- or double- quoted (yet the quotes are always necessary). PleaseStand (talk) 06:19, 27 April 2013 (UTC)


 * I'm getting the hang of it now; very useful, thanks. One area that I found confusing was in searching for the Green  symbol. I never did find one and for me, it's a green button with the words "Segregate refs for editing". Do you have advice for dealing with the red error messages when someone removes content with the ref name from the article? My76Strat (talk) 02:32, 28 April 2013 (UTC)
 * OK, so when I end up modernizing the script, actually using the symbol shown above in the edit toolbar will be on my to-do list.
 * As for cleaning up after an accidental deletion of ref contents (e.g. from splitting off a section into a separate article), you should be able to open both the current revision and an old revision for editing, click the green button in both edit windows, and copy the missing footnotes to the new revision: remove the incomplete entries (e.g. ) from the list and add the complete ones (e.g.  ) at the bottom. The script will try to match up ref names automatically. PleaseStand (talk) 04:13, 28 April 2013 (UTC)

A barnstar for you!
Thanks! PleaseStand (talk) 23:28, 3 September 2013 (UTC)

Take another barnstar
Thanks! PleaseStand (talk) 23:28, 3 September 2013 (UTC)

Userinfo script
Regarding your userinfo script User:PleaseStand/userinfo.js, you might want to update the edit counter tool from the toolserver link to the new wmflabs one, ie to. The old one does not update properly. Thanks,  Rcsprinter  (discuss)  @ 00:19, 27 November 2013 (UTC)
 * ✅. Thanks for reminding me to do this. PleaseStand (talk) 01:17, 27 November 2013 (UTC)

User Info script, show on all user pages rather than just the top-level one?
Hi, would it be possible to make your User Info script show on all of a user's subpages, rather than just their top-level user page? I forked your script a few years ago to do this, plus a few other things, but I'd rather not maintain a separate version of your script because changes always need to be made to it and I don't want to maintain a separate copy. I also made the User Info script work on a user's Contributions page as well. Or is there a particular reason why you chose not to do this, since it looks like you explicitly specify not to do this in your script?

Anyway to do it, you'd have to find the following:

if((wgNamespaceNumber == 2 || wgNamespaceNumber == 3) && !(/\//.test(wgTitle))) {

And replace with:

if(wgNamespaceNumber == 2 || wgNamespaceNumber == 3 || mw.config.get('wgCanonicalSpecialPageName') == 'Contributions') {

And that should do the trick. Thanks in advance. Gary King ( talk  ·  scripts )  18:16, 27 November 2013 (UTC)
 * I excluded subpages because both User:Fran Rogers/dimorphism.js and User:Splarka/sysopdectector.js did, not that excluding subpages made much sense. As for showing the info on contributions pages, the proper approach would be to check . That variable was added only recently, in 88773. I will make the change once I get the time to test it. PleaseStand (talk) 05:54, 28 November 2013 (UTC)


 * So no chance of getting User Info to appear on subpages? Gary King  ( talk  ·  scripts )  23:09, 28 November 2013 (UTC)

XOR Swap
I modified your XOR Swap svg to always color code x and y. I couldn't find a way to upload it as a revision, so it's uploaded separately. https://commons.wikimedia.org/wiki/File:XOR_Swap_-_color_coded.svg Feel free to incorporate the changes.

76.21.170.119 (talk) YIG —Preceding undated comment added 18:30, 27 December 2013 (UTC)

SegregateRefs
Hi! I have your SegregateRefs script installed. It used to work fine, and was very useful for migrating to WP:LDR. But it no longer appears in my sidebar. I'm now not sure whether I ever had it after the switch to https://. Is there a way to fix this? (MacOS 10.6.8, Safari 5.1.10). Many thanks, Justlettersandnumbers (talk) 15:04, 12 January 2014 (UTC)
 * Did you do something to fix it? Anyway, it's back, many thanks! Justlettersandnumbers (talk) 18:00, 12 January 2014 (UTC)

WP:User script sandbox fork
I made a fork of User:PleaseStand/userScriptSandbox.js at User:Kephir/gadgets/jssand.js: I integrated the Ace editor (falling back to plain textarea the CodeEditor extension is unavailable) and added oninput event handler (to better detect when the textarea changes). I am not sure I want to maintain this indefinitely, so feel free to merge it back. — Keφr 10:34, 6 April 2014 (UTC)

User Info script
Hey, X!'s edit counter has been discontinued and replaced by Cyberpower, so the URL in this line of your userinfo.js script

should be replaced with

(or something like that). Thanks, ansh666 08:23, 6 April 2014 (UTC)
 * ✅ PleaseStand (talk) 08:39, 6 April 2014 (UTC)


 * There's an "x" on a line by itself, which shouldn't be there. Gary (talk  · scripts ) 17:08, 6 April 2014 (UTC)
 * Fixed. Thanks for spotting this. It would seem that the script just happened to work because of the variable x for the XMLHttpRequest and automatic semicolon insertion. PleaseStand (talk) 21:02, 6 April 2014 (UTC)

A kitten for you!
Awesome job on making this script. I hope Wikipedia eventually allows you to hide the sidebar as a built-in option.

MeanMotherJr (talk) 05:21, 9 May 2014 (UTC) 

sfn's
User:PleaseStand/References segregator Greetings, I stumbled on this and found the page rather technical for my Wikimojo, so I wonder if you could help with some advice? I write on a lot of old pages like Second Battle of the Odon, many of which have been dormant for years and have <>  references. I've found that sfn's suit me best and would like to know if there is a script which can change the references to sfns? RegardsKeith-264 (talk) 17:25, 9 June 2014 (UTC)
 * Sorry for the delayed reply. No, I'm not aware of such a script, though if you find out about one, I would like to know. PleaseStand (talk) 14:04, 7 July 2014 (UTC)
 * Ah well, if I find one I'll get in touch. Thanks and greetings to the cat above.Keith-264 (talk) 14:21, 7 July 2014 (UTC)

Orphaned non-free image File:Mushroom in the Sand cover.jpg
 Thanks for uploading File:Mushroom in the Sand cover.jpg. The image description page currently specifies that the image is non-free and may only be used on Wikipedia under a claim of fair use. However, the image is currently not used in any articles on Wikipedia. If the image was previously in an article, please go to the article and see why it was removed. You may add it back if you think that that will be useful. However, please note that images for which a replacement could be created are not acceptable for use on Wikipedia (see our policy for non-free media).

Note that any non-free images not used in any articles will be deleted after seven days, as described in the criteria for speedy deletion. Thank you. Stefan2 (talk) 23:50, 7 July 2014 (UTC)

Your script userinfo.js on different lang mutation of wikipedia
Hi, I copied youruserinfo.js into my vector.js at cs.wiki, but it shows only gender image next to my name. The script code is too difficult for me, I could translate the text, but I cant get it to show the information (editcount, accountage). Could you advice me on how to fix it? If it is a quick and easy fix, feel free to edit my common.js page. Your help is appreciated, thank you. --Wesalius (talk) 06:06, 2 September 2014 (UTC)

Your script userinfo.js
Hello, could modify your script to display male/female badges in the same line with user title and make this badge gray? The problem is that current implementation crashes layout a little. Current apperance: User:Rezonansowy

Last edited by Rezonansowy (talk · contribs)

♂

It should look like this: User:Rezonansowy ♂

Last edited by Rezonansowy (talk · contribs)

Regards, --Rezonansowy (talk | contribs) 11:46, 22 October 2014 (UTC)

Wikipedia:Village pump (technical)/Archive 133#Custom notices on user .js and .css pages
You are invited to join the discussion at Village pump (technical)/Archive 133. Thanks. — &#123;&#123;U&#124;Technical 13&#125;&#125; (e • t • c) 14:58, 6 January 2015 (UTC)

User info code
Would it be possible to update the code in your user info script to the below? "" + to "" + Thanks! Kevin Rutherford (talk) 14:36, 13 February 2015 (UTC)
 * ✅ for User:PleaseStand/userinfo.js. The link used to point to [//tools.wmflabs.org/supercount/ supercount] (for a while) but had been changed by an admin in October 2014. User:PleaseStand/userinfo-dev.js, an experimental version of the script I started developing a while ago, still points to supercount. I'll have to look into what the differences between the two edit counters are, as well as which other changes to userinfo.js are still relevant for userinfo-dev.js. PleaseStand (talk) 19:13, 13 February 2015 (UTC)

removing left sidebar
Hi, Your page is the ONLY reference I have found for removing the left sidebar. Really excited about this.

Found here: https://en.wikipedia.org/wiki/User:PleaseStand/Hide_Vector_sidebar

Can you expand on the install instructions? I did not add it to 'User:myname/vector.js', but instead 'User:myname/common.js'. This didn't exist before I created it.

Also why have the vector skin check at the end if it is added to the skin javascript directly? I just realized I added it to global first, and the check did work. Moving it over to vector.js now...

I fumbled through but expanded instructions may help others.

Also, the shortcut key does not work to un-hide on Macs. Not that I want to unhide it... I could not figure out what to edit in the code to change the shortcut keys.

It also loads after all of the page content, is there a way to load it before so the sidebar doesn't appear then disappear, or edit the skin directly?

Thanks! Hyperduc (talk) 16:45, 10 May 2015 (UTC)
 * vector.js versus common.js: Adding the code to vector.js causes it to be loaded only when useful: when you use Vector rather than MonoBook or another skin. If you only use Vector and don't switch skins, using common.js instead should not hurt performance. (The check in the script itself is a safeguard to ensure that the script will not affect other skins, and possibly cause problems, if you do load the script from common.js.)
 * Mac shortcut key: Try Ctrl+Option+a instead of Alt+Shift+a. See Access key. If that doesn't work, it may be necessary to change the letter key in the script.
 * Sidebar flashing: It's probably possible to change the script to avoid it, though such a change would be substantial and have to be paired with a change to your vector.css page. (All code from common.js and vector.js is loaded at the bottom of the page.) The workaround I have in mind would involve defining all style overrides in vector.css, which is loaded before the page content, then when the sidebar is to be shown, somehow disabling the overrides from JS. PleaseStand (talk) 05:54, 12 May 2015 (UTC)

segregate-refs.js
The script replaces some of the &lt;ref instances with the weird-looking &lt;REF. Although this does not affect functionality, it would be better if the script simply wouldn't do this. Could you fix this? I think the problem is in the following lines: refShort = caseCues ? refLong.replace( /^<REF/, "<ref" ) : refLong; if ( caseCues && ref.slice( 0, 4 ) == '<REF' ) { ref.slice( 0, 4 ) != '<REF' --JorisvS (talk) 12:26, 13 September 2015 (UTC)

ArbCom elections are now open!
MediaWiki message delivery (talk) 14:14, 24 November 2015 (UTC)

A pie for you
Hi PleaseStand. You have created template:Pie chart five years ago. Please have a look at template:PieChart, which is based on extension:graph and vega specificaton, example usage: Ad Huikeshoven (talk) 12:11, 24 December 2015 (UTC)

template:piechart has been moved to template:graph:PieChart.
template:piechart has been moved to template:graph:PieChart. Ad Huikeshoven (talk) 20:17, 24 December 2015 (UTC)

Bug with the user info script
I love this script, but recently I've noticed that the information is being repeated twice. For example, on this page, it shows (without the links):

A reviewer and rollbacker, 6 years 2 months old, with 7,503 edits. Last edited 2 weeks ago. A reviewer and rollbacker, 6 years 2 months old, with 7,503 edits. Last edited 2 weeks ago. From Wikipedia, the free encyclopedia..

I've tested in IE11, Firefox, and Chrome. Any idea why this is happening? Eman 235 / talk 00:53, 20 December 2015 (UTC)

Silly me! I tried to get it globally by moving it to meta (I did it properly later), but forgot to take it out of my JS file here... Eman 235 / talk 20:13, 27 December 2015 (UTC)

Hide vector sidebar
Wikibits is going away. See email. One of the identifiers that is being removed is "importScript". When I replace "importScript" with "mw.loader.load" in my vector.js file, your script no longer works. Bgwhite (talk) 08:47, 2 April 2016 (UTC)

Request
Feature request/proposal/suggestion: How 'bout making User:PleaseStand/References_segregator support conversion to the 'acceptable' compromise (especially for small articles): only use LDR for citations used multiple times suggested at Help:List-defined_references. I wouldn't use "var SegregateRefsJsAllowConversion = true;" to convert every ref to LDR, but I'd use "var SegregateRefsJsAllowCompromiseConversion = true;" to convert all citations used multiple times to LDR. -- Elvey (t•c) 19:26, 19 May 2016 (UTC)

New user group for userinfo.js
Hi, thanks for your awesome userinfo script - I've noticed with the advent of 'extendedmover', userinfo does not have a friendly name entry and thus brings up undefined when clicked. I think the following should fix this: var friendlyGroupNames = { extendedmover: "Page mover",

Thanks again! -- samtar talk or stalk 08:47, 28 May 2016 (UTC)
 * in revision #722849048. In addition to the missing friendly name entry, there were two bugs:
 * Because of a missing API parameter, the script did not load locally defined grouppage-* messages.
 * When a grouppage-* message was missing, the script would try to create a link anyway (to undefined). PleaseStand (talk) 14:15, 30 May 2016 (UTC)

User info request/question
Is it possible to include global groups in your script? &mdash; Music1201  talk  00:44, 15 June 2016 (UTC)

Userinfo.js
The script seems to be be repeating itself...you are "An extended confirmed user, pending changes reviewer, and rollbacker, 6 years 9 months old, with 7,554 edits. Last edited 22 hours ago. An extended confirmed user, pending changes reviewer, and rollbacker, 6 years 9 months old, with 7,554 edits. Last edited 22 hours ago. From Wikipedia, the free encyclopedia.." Revent talk 04:30, 1 August 2016 (UTC)


 * I believe you made the same mistake I did back in December—you've got it here and here. Taking out of the local file should fix it. Eman 235 / talk  16:02, 1 August 2016 (UTC)

highlight comments bug
Hey. Your script User:PleaseStand/highlight-comments.js thinks the other person's comment is also mine: see example: Wikipedia_talk:Noticeboard_for_India-related_topics, the comment starting with "Thank you Ugog Nizdast. Yes, ..." is also highlighted besides mine. Ugog Nizdast (talk) 12:20, 6 January 2017 (UTC)

hide-vector-sidebar.js
It seems your script has a typo: The first one should be "Show sidebar" rather than "Hide sidebar". --Fylwind (talk) 08:39, 9 March 2017 (UTC)
 * . This was an error I made over three years ago (revision #580854026, 9 November 2013) when I was replacing uses of deprecated MediaWiki JS functions. PleaseStand (talk) 08:04, 15 March 2017 (UTC)