User talk:SMcCandlish/userinfo

From Meta, a Wikimedia project coordination wiki

This talk page is for reporting issues with m:User:SMcCandlish/userinfo.js.  — SMcCandlish ¢ >ʌⱷ҅ʌ<  22:47, 19 November 2019 (UTC)[reply]

Experimental overhaul[edit]

The following discussion is closed. Please do not modify it. Subsequent comments should be made in a new section. A summary of the conclusions reached follows.
Moved discussion from: w:en:User_talk:PleaseStand/User_info. Archiving a copy of the original thread at en.wikipedia.  — SMcCandlish ¢ >ʌⱷ҅ʌ<  22:52, 19 November 2019 (UTC)[reply]

Since this [PleaseStand's original script at w:en:PleaseStand/userinfo.js] seems to be unmaintained for a while now, I've forked it to m:User:SMcCandlish/userinfo.js.

  • Fixes the hardcoding of en.wikipedia.org, reported (with fix) above by Erutuon. I've tested that this works; when I view a user who has accounts on Meta and on en.Wikipedia, I see different user groups reported.
  • Adds every user group I could identify (in English). Several added ones are definitely working (interface-admin, etc.), though some do not seem to be (e.g. ombudsman). I'm not sure if this is because of a problem in the list of groups, or because the group in question is not in fact in use on the wikis at which I tried it. For example, I looked at users listed in m:Ombudsman commission, and none show up with this tool as being in the ombudsman group, so it may be that the user group has been "retired" even though the role has not. Anyway, I added some groups that seem to be in use only on Meta, WikiData, and Commons, as well as global ones, and new ones. I left user and autoconfirmed as suppressed (we don't actually need to see those, since they're automatic – either upon account creation or not long after, respectively). Also added a non-English group in use on pt.Wikipedia. @Erutuon and BDavis (WMF): pinging two users who asked about some of this.

To transclude this in your own local Special:MyPage/common.js (or your m:Special:MyPage/global.js, as I did): add this to it:

mw.loader.load('https://meta.wikimedia.org/w/index.php?title=User:SMcCandlish/userinfo.js&action=raw&ctype=text/javascript');

Obviously, I have no particular need to keep my fork alive, if PleaseStand comes back and wants to re-consolidate the code.
 — SMcCandlish ¢ 😼  10:32, 18 November 2019 (UTC)[reply]

@SMcCandlish: Hmm, the edit count link doesn't work; fortunately, the URL format has apparently been simplified to https://xtools.wmflabs.org/ec/<domain>/<username>. — Eru·tuon 16:49, 18 November 2019 (UTC)[reply]
Updated. It was actually working to get the count, but when you clicked on it, it wanted to you to re-enter the site and user name. Now it will go directly to the user counts page at the right site. I also fixed a group name typo.  — SMcCandlish ¢ 😼  22:51, 19 November 2019 (UTC)[reply]

Should probably also move any further discussion of this fork to it's own talk page. I don't know if PleaseStand is getting spammed with e-mail about edits to watched pages.  — SMcCandlish ¢ 😼  22:51, 19 November 2019 (UTC)[reply]


The above discussion is preserved as an archive. Please do not modify it. Subsequent comments should be made in a new section.

User age link breaks when username contains apostrophes[edit]

Usernames that contain apostrophes, like my own, break the intended link generation for how old a user is. For example, a search is done for a user with the name "The Editor" when clicking on the link generated for my account instead of properly doing a search for "The Editor's Apprentice". Thanks for any fixes and take care. —The Editor's Apprentice (talk) 18:11, 28 January 2022 (UTC)[reply]