Created
September 27, 2021 23:30
-
-
Save patrickroberts/500fb2f7439ef7aa1e089144d6d9c3b9 to your computer and use it in GitHub Desktop.
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 Enlarge Pokemon Showdown Battle | |
// @match https://play.pokemonshowdown.com/* | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
const style = document.createElement('style'); | |
const scale = 1.5; | |
style.textContent += `.battle, .battle-controls { transform: scale(${scale}) !important; transform-origin: top left; }`; | |
style.textContent += `.battle-controls { top: calc(370px * ${scale}) !important; }`; | |
style.textContent += `.innerbattle { width: 100%; height: 100%; }`; | |
style.textContent += `.battle-userlist, .battle-log, .battle-log-add { left: calc(640px * ${scale}) !important; }`; | |
document.head.append(style); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment