Skip to content

Instantly share code, notes, and snippets.

@patrickroberts
Created September 27, 2021 23:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patrickroberts/500fb2f7439ef7aa1e089144d6d9c3b9 to your computer and use it in GitHub Desktop.
Save patrickroberts/500fb2f7439ef7aa1e089144d6d9c3b9 to your computer and use it in GitHub Desktop.
// ==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