r/TagPro • u/DatBlizzard Some Ball -1 • Sep 20 '14
[Userscript] Tagpro Scoreboard Enhancer: Sort scoreboard by any column and highlight top players
This script is an update to the script I just posted to the subreddit (found here). Enough people seemed interested in the idea of highlighting the best score in each category so I thought a new post was warranted.
This script will allow you to sort the scoreboard rankings by any category (Grabs, Caps, Hold, etc.). You can also sort descending or ascending, the name column will be sorted alphabetically or reverse alphabetically. To sort by a column other than the default Score, simply click the column header. To switch between descending and ascending, click the header a second time.
If a header is underlined, it means that the scoreboard is currently sorting using that category, descending. An overline means ascending. For player names, underline means alphabetically, overline means reverse alphabetically.
Additionally, this version of the script adds highlighting to the best score(s) in each category. Highlighting is color coded based on team. You can be turn highlighting on/off inside the script. Two things to mention about this: the first is that in highlighting the boxes, the transparency of those boxes is removed. This isn't too big a problem but I thought it looked a little weird and was worth pointing out. Second, is that if multiple people have the best value in a category, all the best values are highlighted. The exception to this is if everyone in the game has the "best" value (all 0 caps or all 0 pops, most obvious at the beginning). If everyone has the same best value then nothing in that category is highlighted.
Let me know what you guys think.
Screenshots of sorting (highlighting off):
Sorted alphabetically by player name
Sorted ascending by returns
Sorted descending by hold
Sorted ascending by caps
And a screenshot of highlighting
Edit: Quick bug fix: The alphabetic sorting sorting for player names was a bit off, the link above now has the most recent version (v0.2.1) that fixes this.
7
u/adhi- DRG Sep 20 '14
omfg. i might have just busted a nut. gold incoming for you when i get back home.
4
u/MultiMediaWill Juke King - MVP 90% of the time Sep 20 '14
This is brilliant! Great work Some Ball -1.
1
u/Tobysmc Sentry//Radius Sep 20 '14
Is there any reason this wouldn't work? I'm using Firefox and it's simply not working for me.
1
u/oSo_Squiggly | Truman Had Re | Booston Red Blox | Pequeños Pandas | Whitecaps Sep 21 '14
Another awesome userscript SB-1. What would I need to change in the script to make the highlight colors a little less bright? I'm assuming just changing this line will do it:
I think I answered my own question but I'll have to mess with it to check if it works. Is it possible to make the colors partially transparent so it blends better with rest of the leaderboard?
1
u/Probablywontreadthis Leafs Jan 04 '15
I just started using userscripts and I really like this! Thank You!
1
u/co1010 CoolCat Sep 20 '14
Looks sexy. Well done.
1
u/[deleted] Sep 20 '14
Amazing. Thank you for taking the time to make this!
1
u/[deleted] Sep 21 '14
r u god
0
u/[deleted] Sep 21 '14
[deleted] — view deleted comment
0
u/[deleted] Sep 20 '14
[deleted] — view deleted comment