Created
January 8, 2015 01:39
-
-
Save undergroundmonorail/e1b185c4c3d093b4ee92 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 Orange Neopet Health | |
// @namespace http://www.reddit.com/u/undergroundmonorail | |
// @version 0.1 | |
// @description yellow is hard to read. make your neopet's worrying-but-not-critical health show up orange instead | |
// @author monorail | |
// @match http://www.neopets.com/* | |
// ==/UserScript== | |
(function(){ | |
a = $('.activePetInfo'); | |
a.html(a.html().replace(/(<font color=")yellow("><b>\d+ \/ \d+<\/b><\/font>)/, '$1orange$2')); | |
})(); |
woah, sweet. i'd literally never used jquery before. good to know :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can drop the regexes by leveraging jQuery a bit more: