User talk:Novem Linguae/Scripts/UserHighlighterSimple
Green and grey went out
[edit]To editor Novem Linguae: A couple days ago it seems the green highlight of >10k edits and the grey of >500 edits went out. Chris Troutman (talk) 19:52, 8 March 2024 (UTC)
- It's working again; thanks. Chris Troutman (talk) 20:35, 8 March 2024 (UTC)
- Thanks for reporting this Chris. I temporarily fixed it. It's some kind of bug affecting NovemBot and Toolforge. It can be observed by looking at the -1.6 million byte diffs in this edit history. Will try to release a patch for this soon. –Novem Linguae (talk) 22:29, 8 March 2024 (UTC)
- Fixed I think. I added some code that checks how much data the bot wants to write, and if it is less than 1 million bytes, it will skip that day. Please let me know if it happens again, although I think this should do the trick. –Novem Linguae (talk) 08:54, 9 March 2024 (UTC)
- Thanks for reporting this Chris. I temporarily fixed it. It's some kind of bug affecting NovemBot and Toolforge. It can be observed by looking at the -1.6 million byte diffs in this edit history. Will try to release a patch for this soon. –Novem Linguae (talk) 22:29, 8 March 2024 (UTC)
Show bots a different colour
[edit]Here's a suggestion. For username highlighter, show bots under a different colour. It makes no sense to show them regular green. A simple unobstrusive grey or similar might be way better. Soni (talk) 00:22, 9 June 2024 (UTC)
- I'm on the fence about this one. Any other talk page watchers interested in this? –Novem Linguae (talk) 00:45, 9 June 2024 (UTC)
- @Novem Linguae I do support it. No comments about which color though. Bunnypranav (talk) 11:23, 27 October 2024 (UTC)
Toggle
[edit]Novem Linguae, I just became aware of the existence of this script at the current RfA Talk page. I have what I think is a simple question. If I install it, does it automatically run on every page I look at? If yes, is there a way to turn it off without uninstalling it, and turn it back on when I wish to be dazzled by color? Thanks.--Bbb23 (talk) 20:38, 14 June 2024 (UTC)
- It doesn't currently have a toggle. If you only want to run it on RFA subpages, that would be easy to script up in common.js and I could help with that. If you prefer a link that toggles it and the setting are saved between page loads, that would be a bit trickier. Thoughts? –Novem Linguae (talk) 22:08, 14 June 2024 (UTC)
- I prefer a toggle, but I don't want to put you to extra work if my wish is not shared by others. BTW, there's something else I'd really like if you feel like tackling it. I don't know how hard it is. I want to be able to look at the contribution history of a page and see only the edits of blocked users. I've wished this for a while as it would help sometimes when I'm investigating a possible new sock.--Bbb23 (talk) 22:49, 14 June 2024 (UTC)
- @Bbb23. Here's some code to make UserHighlighterSimple only run on RFA subpages. You'd put this in your common.js (and also make sure to delete the old entry in common.js):
if ( mw.config.get( 'wgPageName' ).startsWith( 'Wikipedia:Requests_for_adminship/' ) ) { importScript('User:Novem Linguae/Scripts/UserHighlighterSimple.js'); }
- I'm currently a little busy and I don't think I'll have time to work on a toggle or a "show only blocked users in contribs" script. For the second one, you might want to post at WP:US/R. Should be an hour or two to script up for someone experienced. Hope that helps! –Novem Linguae (talk) 14:30, 23 June 2024 (UTC)
- Thanks for the pointer to US/R.--Bbb23 (talk) 15:20, 23 June 2024 (UTC)
- I prefer a toggle, but I don't want to put you to extra work if my wish is not shared by others. BTW, there's something else I'd really like if you feel like tackling it. I don't know how hard it is. I want to be able to look at the contribution history of a page and see only the edits of blocked users. I've wished this for a while as it would help sometimes when I'm investigating a possible new sock.--Bbb23 (talk) 22:49, 14 June 2024 (UTC)
Default colours in Docs
[edit]Hey @Novem Linguae,
I recently started using your script, but wanted to change the colour admins look to yellow. However, customizing a single group, requires one to specify every group's colour and styling in the .css file. I took the code from the js file and changed it a bit to use it in my .css file. It would be beneficial if this default code can be put into the docs. Then one can just copy this, change the groups that they want to customize, and be done! Thanks!
.UHS-override-signature-colors {
color: #0645ad !important;
background-color: transparent !important;
background: unset !important;
}
.UHS-no-permissions {
border: 1px solid black !important;
}
.UHS-500edits-bot-trustedIP {
background-color: lightgray !important;
}
.UHS-10000edits {
background-color: #9c9 !important;
}
.UHS-new-page-reviewer {
background-color: #99f !important;
}
.UHS-former-administrator {
background-color: #d3ac8b !important;
}
.UHS-administrator {
background-color: #9ff !important;
}
.UHS-bureaucrat {
background-color: orange !important;
color: #0645ad !important;
}
.UHS-arbitration-committee {
background-color: #ff3f3f !important;
color: white !important;
}
.UHS-steward {
background-color: #00ff00 !important;
}
.UHS-wmf {
background-color: hotpink !important;
color: #0645ad !important;
}