Skip to content

Instantly share code, notes, and snippets.

@FugiTech
Last active March 28, 2024 14:40
Show Gist options
  • Save FugiTech/1cbe3b776bb9603298fc4258495af09a to your computer and use it in GitHub Desktop.
Save FugiTech/1cbe3b776bb9603298fc4258495af09a to your computer and use it in GitHub Desktop.
Two column blaseball layout
// ==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);
})();
@frozenpandaman
Copy link

frozenpandaman commented Sep 1, 2020

This doesn't activate for me unless I change the @match to https://*.blaseball.com/* as the site always redirects to use the www subdomain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment