Skip to content

Instantly share code, notes, and snippets.

@patrickroberts
Created September 27, 2021 23:57
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/ae8b48bdd8e93c2100430f2d61d19555 to your computer and use it in GitHub Desktop.
Save patrickroberts/ae8b48bdd8e93c2100430f2d61d19555 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Override Trainer Sprite
// @match https://play.pokemonshowdown.com/*
// ==/UserScript==
(function() {
'use strict';
const style = document.createElement('style');
style.textContent = '.trainer-near .trainersprite { background-image: url(https://i.imgur.com/yTfxwzF.png) !important; background-size: contain; transform: scaleX(1) !important; }';
document.head.append(style);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment