Userscripts and Styles

Post Reply
User avatar
monorail
Site Admin
Posts: 66
Joined: Sun Oct 11, 2020 9:43 pm
Canada
Contact:
monorail’s avatar
Loading…

Userscripts and Styles

Post: # 391Post monorail »

A thread for custom javascript and CSS for modifying the look and feel of the blaseball.com frontend. These tend to be smaller projects that don't need a whole thread.

To run userscripts, you'll need the Tampermonkey browser extension (chrome, firefox). To use userstyles, I recommend Stylus (chrome, firefox). (Uninstall Stylish if you have it! Stylus is compatible with the same userstyles and doesn't have malware in it.)
It's not very effective...

she/her
User avatar
monorail
Site Admin
Posts: 66
Joined: Sun Oct 11, 2020 9:43 pm
Canada
Contact:
monorail’s avatar
Loading…

Blaseball Team Game View

Post: # 392Post monorail »

This is a truly horrible hack but it does make it easier to watch your favourite team.

Calls a function every time anything in the DOM updates. Don't write js like this, kids.

Source, install link

Image
It's not very effective...

she/her
User avatar
butchcats
Posts: 32
Joined: Wed Jan 04, 2023 12:29 am
Location: locked in the firehouse's basement it's been two years someone please help m
United States of America

Re: Userscripts and Styles

Post: # 401Post butchcats »

Here's a little block of code made by Ezra of the Lovers for use on the Stylus userstyle extension. It changes the font color of the game text to green, as well as making it a little bigger for legibility. You can change the 'color' hex code to be any color you want!

Code: Select all

 .game-widget__log {
    color:#9ff549;
    font-family: Proxima Nova, monospace;
    font-size: .8rem;
    line-height: 15px;
}
Image


Additionally, here's SubtractionSoup's font changer to replace the Sneak font family in Blaseball https://userstyles.world/style/8054/sneakpique
nel | he/they | sig under construction
the ticker....
User avatar
Ackasi
Posts: 119
Joined: Tue Jan 03, 2023 11:09 pm
Location: deep in the cheese caves
Mood:
Mexico
Contact:
Ackasi’s avatar
Loading…

Re: Userscripts and Styles

Post: # 402Post Ackasi »

Here's League Colors! it adds colors back to the names on the across the league

Made by mostlycogent


Image
Your favorite butch burnout||Aniceto or Avery||Any/All
:mini_steph: :mini_summers:
SUMMERSWINTERS SWEEP
View My CDMX blinkies under the spoilers <3
ImageImageImageImage
User avatar
monorail
Site Admin
Posts: 66
Joined: Sun Oct 11, 2020 9:43 pm
Canada
Contact:
monorail’s avatar
Loading…

Blaseball Userscript Options

Post: # 411Post monorail »

This is a script I'm working on that allows other scripts to register options that can be toggled in the settings menu of your blaseball profile. Right now, the only thing it does is allow the Team Game View script I posted earlier to enlarge every game optionally. Note the installation instructions; you need to do an extra step to ensure that it loads before any scripts that want to use it (which is why I haven't included an installation link here).

Source and installation instructions

Image

There are instructions there for developer use as well. Currently all it does is checkboxes but I plan to improve that.
It's not very effective...

she/her
User avatar
monorail
Site Admin
Posts: 66
Joined: Sun Oct 11, 2020 9:43 pm
Canada
Contact:
monorail’s avatar
Loading…

Blaseball Default Max Bet

Post: # 413Post monorail »

Makes new bets default to 20 chips instead of 0. Saves 12 clicks an hour.

Source, install link
It's not very effective...

she/her
User avatar
butchcats
Posts: 32
Joined: Wed Jan 04, 2023 12:29 am
Location: locked in the firehouse's basement it's been two years someone please help m
United States of America

Re: Userscripts and Styles

Post: # 446Post butchcats »

https://docs.google.com/document/d/1Bh0 ... AuTsI/edit Looks like there's a Google Doc now compiling a bunch of userscripts people have made for Blaseballl!
nel | he/they | sig under construction
the ticker....
User avatar
Paranundrox
Posts: 20
Joined: Tue Jan 10, 2023 12:19 am
Mexico

Re: Userscripts and Styles

Post: # 455Post Paranundrox »

There's also a projects channel in SIBR for user styles now - you'll need the Projects Access role to see it but there's a handful of things in there
Para | They/He

"Can I offer you some Lupin the Third in this trying time?"



:mini_beansandmcblase: :mini_summers: :mini_huber: :mini_axel: :mini_burke: :mini_yong:
User avatar
monorail
Site Admin
Posts: 66
Joined: Sun Oct 11, 2020 9:43 pm
Canada
Contact:
monorail’s avatar
Loading…

Blaseball Auto Select Bets

Post: # 467Post monorail »

Automatically select bets for a day of games by clicking on the hour header.

By default, selects the team with higher odds. Compatible with Blaseball Userscript Options to configure the algorithm by optionally choosing by record (with odds as a tiebreaker) and using a "too close to 50%" cutoff.

Source, install link

Image
It's not very effective...

she/her
User avatar
monorail
Site Admin
Posts: 66
Joined: Sun Oct 11, 2020 9:43 pm
Canada
Contact:
monorail’s avatar
Loading…

Blaseball Userscript Loader

Post: # 474Post monorail »

This is more of a behind the scenes thing but I'll post it anyway.

To write userscripts for blaseball.com you have to have your code watch for any changes in the DOM and run a callback function every time, which sucks. Nobody likes doing it, and it's wasteful for all these different scripts to all be doing it separately. I've written a userscript loader that watches for DOM mutations and then calls scripts that care about them, rather than every individual script having to do that work themselves.

All the other userscripts I've posted have been updated to use the launcher if it's installed, or to fall back on their previous behaviour otherwise.

Source

No install link because there's one extra step you have to do when installing for the loader to work, details at the source link.
It's not very effective...

she/her
User avatar
Corvoda
Posts: 16
Joined: Thu Jan 05, 2023 4:30 am
United States of America

Re: Userscripts and Styles

Post: # 507Post Corvoda »

I've been working on a "darker mode" stylus extension for this forum. I have very big screens, so I prefer my sites on the darker end. That said, I'm not that good with colors, so if you have any recommendations, LMK. I'll post it when I'm happy with it.

Image
Image
Image
User avatar
Fish
Posts: 99
Joined: Tue Oct 13, 2020 1:26 am
Location: Masshole
United States of America

Re: Userscripts and Styles

Post: # 523Post Fish »

Corvoda wrote: Sat Jan 14, 2023 11:43 pm I've been working on a "darker mode" stylus extension for this forum. I have very big screens, so I prefer my sites on the darker end. That said, I'm not that good with colors, so if you have any recommendations, LMK. I'll post it when I'm happy with it.

Image
Image
Oh that looks nice imo! I’ve been using the dark reader extension with flat but we should def have more dark options
fish | she/her :mini_steph:
flashing woomy below
Image
Image
User avatar
Ackasi
Posts: 119
Joined: Tue Jan 03, 2023 11:09 pm
Location: deep in the cheese caves
Mood:
Mexico
Contact:
Ackasi’s avatar
Loading…

Re: Userscripts and Styles: PHPBB

Post: # 526Post Ackasi »

Fish wrote: Mon Jan 16, 2023 5:05 am Oh that looks nice imo! I’ve been using the dark reader extension with flat but we should def have more dark options
I'm gonna do some digging for styles for Holly to add, heres phpBB's style database https://www.phpbb.com/styles/ if you wanna make any suggestions, maybe start a thread for forum additions in Forum Meta
Your favorite butch burnout||Aniceto or Avery||Any/All
:mini_steph: :mini_summers:
SUMMERSWINTERS SWEEP
View My CDMX blinkies under the spoilers <3
ImageImageImageImage
User avatar
Corvoda
Posts: 16
Joined: Thu Jan 05, 2023 4:30 am
United States of America

Re: Userscripts and Styles

Post: # 540Post Corvoda »

On my CDMX Forum darkmode Stylus code, I think i'm overall happy with it now. Here you go!
Image
User avatar
Fish
Posts: 99
Joined: Tue Oct 13, 2020 1:26 am
Location: Masshole
United States of America

Re: Userscripts and Styles

Post: # 655Post Fish »

Some new ones from the blaseball community:

Adds back in weather icons, by Myno: https://greasyfork.org/en/scripts/458750-weather-icons

Displays money won after betting is done on the betting screen, by BeeFox: https://beefox.xyz/files/snippets/totalChips.js
fish | she/her :mini_steph:
flashing woomy below
Image
Image
User avatar
Fish
Posts: 99
Joined: Tue Oct 13, 2020 1:26 am
Location: Masshole
United States of America

Re: Userscripts and Styles

Post: # 656Post Fish »

Displays sum money won/lost from each betting day, by clair: https://pastebin.com/mG7iG5T2
fish | she/her :mini_steph:
flashing woomy below
Image
Image
User avatar
Ackasi
Posts: 119
Joined: Tue Jan 03, 2023 11:09 pm
Location: deep in the cheese caves
Mood:
Mexico
Contact:
Ackasi’s avatar
Loading…

Re: Userscripts and Styles

Post: # 677Post Ackasi »

https://greasyfork.org/en/scripts/458812-blaseball-tts Blaseball TTS, fair warning, it's as slow as the game is, so the occasional robotic jump scare is expected.
Your favorite butch burnout||Aniceto or Avery||Any/All
:mini_steph: :mini_summers:
SUMMERSWINTERS SWEEP
View My CDMX blinkies under the spoilers <3
ImageImageImageImage
Post Reply