Last active
March 28, 2024 14:40
-
-
Save FugiTech/1cbe3b776bb9603298fc4258495af09a to your computer and use it in GitHub Desktop.
Two column blaseball layout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Blaseball | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description Two column blaseball layout | |
// @author Fugi | |
// @match https://blaseball.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
const s = document.createElement('style'); | |
s.innerHTML = ` | |
.Main-Body > div > div:not(.Standings-League) > ul { | |
display: grid; | |
grid-template-columns: repeat(auto-fit, 1024px); | |
gap: 20px; | |
justify-content: center; | |
width: 90vw; | |
margin-left: calc(-45vw + 512px); | |
margin-bottom: 20px; | |
} | |
.GameWidget { | |
margin-bottom: 0; | |
} | |
.Main-Footer { | |
display: none; | |
} | |
` | |
document.body.appendChild(s); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This doesn't activate for me unless I change the
@match
tohttps://*.blaseball.com/*
as the site always redirects to use the www subdomain.