r/TagPro • u/LostMyGFinElSegundo • Feb 24 '19
[Userscript] True Fullscreen TagPro + Tab to Scoreboard
Hey guys! I am here with a userscript that enables true fullscreen while playing TagPro. You might have noticed that some browsers leave toolbars and address bars onscreen while the game is playing. This is not just a cosmetic problem - less real estate on your screen makes your winrate go down because your viewport is smaller. With hopes of instantly achieving axe after fixing this problem pls?, I made this userscript. It enables HTML5 fullscreen on the TagPro canvas with cross-browser compatibility.
You enable it by clicking anywhere on the game viewport while spectating or playing. You disable it by pressing "escape".
Since "escape" is also the key to view the scoreboard, I included a remapping of the currently unused TAB key. Pressing TAB once brings up the scoreboard, and pressing it again hides it. Pretty simple! Thanks /u/FBI_0 for helping with this part. You can disable it if you'd like by setting "TP_REMAPTAB" variable to false instead of true in the userscript source.
- Here is the game when NOT in fullscreen mode: https://imgur.com/I7t4G1v
- Here is the game when in fullscreen mode: https://imgur.com/YfPRPTa
As you can see it's just a lot cleaner!
Here's the direct link to install via Tampermonkey.
Please comment any suggestions, bugs, or other thoughts. Thank you for playing TagPro!
3
u/LostMyGFinElSegundo Feb 24 '19
Please critique my code (harshly), I'd love to know if there is a better way to accomplish what this userscript does.
3
u/brozzart Pavement Feb 24 '19
Haven't tried it yet but looks amazing! As a sidenote I love your Reddit username
2
u/catalyst518 Catalyst - TPFG Dev Feb 24 '19
What's the difference between this and just hitting F11?
1
u/badasscoming BallsToYou. Feb 24 '19
Would we be able to use this script for competitive though
1
u/AwesomSki black orchid // Maelstrom // Radius Feb 24 '19
I didn't even know you could make the game fill the browser window. Mine uses about 50% of the browser window in the middle. Do most people play zoomed in?
1
u/LeEpicBlob Feb 24 '19
Ooo gonna try this on my ultrawide when i get back home this week
0
u/[deleted] Feb 24 '19
[deleted] — view deleted comment