Created
July 28, 2016 14:25
-
-
Save jamesl1001/bc3ff654dfb176b82f2b74ec7d1d83eb to your computer and use it in GitHub Desktop.
Tampermonkey script to hide common Pokémon from Pokévision map.
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 Hide Common Pokémon from Pokévision | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description Hide those Pokémon who are getting in the way of being the very best! | |
// @author http://jalproductions.co.uk/ | |
// @match https://pokevision.com/ | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var hideThesePokemon = [ | |
102, // pidgey | |
115, // rattata | |
128, // spearow | |
145, // weedle | |
150 // zubat | |
]; | |
for(var i = 0, l = hideThesePokemon.length; i < l; i++) { | |
document.querySelector('[data-original-index="' + hideThesePokemon[i] + '"] > a').click(); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment