Esmaspäev, august 03, 2026

Ajalugu, Täna ajaloos

TÄNA AJALOOS, 11. juuli ⟩ Avati Tallinna teletorn

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 🚀 (talk • contribs) 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 🚀 (talk • contribs) 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 🚀 (talk • contribs) 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

Leave a Reply