Compact Blaseball

Scaled-down, multi-column layout for Blaseball games, standings, and idol lists

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

You will need to install an extension such as Tampermonkey to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         Compact Blaseball
// @namespace    CompactBlaseball-KP
// @version      1.0
// @description  Scaled-down, multi-column layout for Blaseball games, standings, and idol lists
// @author       UPSKingpin
// @match        https://*.blaseball.com/*
// @match        https://www.blaseball.com/*
// @icon         https://www.blaseball.com/favicon.ico
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    const s = document.createElement('style');
    s.innerHTML = `

/* Extend Background Through Page */
.theme-dark {
  background: black;
  margin-bottom: 64px;
}

/* Flexible Grid Layout */
.Main-Body > div > ul:not(.Standings-Subleague-Container):not(.Leaderboard-Player-Container) {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  left: 0px;
  min-height: 600px;
  padding-bottom: 88px;
  position: absolute;
  width: auto;
}

/* In Progress Game Layout */
.GameWidget-Full-Live {
  display: grid;
  gap: 2px;
  grid-template-columns: 100%;
  grid-template-rows: 40% 37% 23%;
  justify-content: center;
  margin: -28px -32px;
  min-height: 400px;
  width: 420px;
  transform: scale(0.8,0.8);
}

/* Finished Game Layout */
.GameWidget.IsComplete.GameWidget-Full-Live {
  display: grid;
  gap: 2px;
  grid-template-columns: 100%;
  grid-template-rows: 40% 37% 23%;
  justify-content: center;
  margin: -14px -32px;
  min-height: 400px;
  width: 420px;
  transform: scale(0.8,0.8);
}

/* Upcoming Game Layout */
.GameWidget-Full-Upcoming {
  display: grid;
  gap: 2px;
  grid-template-columns: 100%;
  grid-template-rows: 35% 35% 30%;
  justify-content: center;
  margin: -56px -32px;
  min-height: 680px;
  width: 420px;
  transform: scale(0.8,0.8);
}

/* Scale Down Standings */
.Standings-Subleague-Container {
  margin-top: -80px;
  transform: scale(0.8,0.8);
}

/* Scale Down Idols */
.Leaderboard-Player-Container {
  margin-top: -100px;
  transform: scale(0.8,0.8);
}

/* Disable Footer */
.Main-Footer {
  display: none;
}

`
    document.body.appendChild(s);
})();