User talk:Bugghost/Scripts/UserRoleIndicator

Is there an easy adjustment that could be made ( or just a line I could add to custom JS to customize the existing script) to make the indicators appear before …

Indicator before signature?

Is there an easy adjustment that could be made ( or just a line I could add to custom JS to customize the existing script) to make the indicators appear before the name?

For people whose signatures have multiple spans, the indicator appears in the middle of them, and makes for a confusing experience when using a screen reader, but if I could make it appear before their signature, or somehow after the second span, this would be solved. I’m guessing after the second span is hard, since it’s often a link to a different page, so before probably makes more sense.

I tried to figure out how to adjust this myself, but my decade rusty JavaScript knowledge didn’t suffice, and I never really got the hang of DOM manipulation even back then. —penultimate_supper 🚀 (talkcontribs) 16:44, 5 November 2024 (UTC)Reply

This should be an easy thing to add as an option - I'll have a look at adding it as something configurable and will get back to you BugGhost🦗👻 18:25, 5 November 2024 (UTC)Reply
Thanks! — penultimate_supper 🚀 (talkcontribs) 18:35, 5 November 2024 (UTC)Reply
Just changed the code a bit to allow this - if you go into your common.js file and add this line anywhere, then the user role labels should appear before the link text:
this.window.UserRoleIndicatorCustomPlacement = "before";
You may have to clear out your cache/hard refresh for your browser to pick up the new version of the script. Let me know if you have any issues! BugGhost🦗👻 18:55, 5 November 2024 (UTC)Reply
Fantastic, thank you a lot, it works perfectly! This makes people's complicated signatures come through a bit better, and will make things make a bit more sense when I use a screen reader. Very much appreciate it! — penultimate_supper 🚀 (talkcontribs) 19:44, 5 November 2024 (UTC)Reply
No worries, glad I could help :) BugGhost🦗👻 20:38, 5 November 2024 (UTC)Reply

Show no indicator for some users

Thanks for writing this script! I was wondering if there was a way to show no indicator at all for certain user groups? If I leave the fields blank, there's still an empty grey box there. InfernoHues (talk) 02:14, 22 June 2026 (UTC)Reply

Thanks! Unfortunately that's not possible currently, but it shouldn't be hard to implement. I'm quite busy with other programming projects at the moment but will try to make some time to look into it and will let you know. BugGhost 🦗👻 22:37, 22 June 2026 (UTC)Reply

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.