Filter Pokemon

Don't display common pokemons in pokeradar.io

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name        Filter Pokemon
// @namespace   pokeradario
// @include     *.pokeradar.io*
// @version     1
// @grant       none
// @description Don't display common pokemons in pokeradar.io
// ==/UserScript==
/* pokeradar io include jquery 3.1.0 */

var commons = [
  "Pidgey"
, "Rattata"
, "Weedle"
, "Zubat"
, "Magikarp" //yeah, 400 is a lot
, "Spearow"
, "Drowzee"
, "Caterpie"
//, "Eevee" //soooo cute!
, "Psyduck"
, "Paras"
, "Venonat"
, "Ekans"
, "Poliwag"
, "Goldeen"
, "Krabby"
, "Staryu"
, "Nidoran♂"
, "Nidoran♀"
, "Geodude"
, "Bellsprout"
, "Horsea"
, "Sandshrew"
, "Slowpoke"
, "Pidgeotto"
, "Oddish"      
    ]

/* less than 1% spawn rate */
var commons2 = [
  "Pinsir"
, "Clefairy"
, "Mankey"
, "Growlithe"
, "Meowth"
, "Tentacool"
, "Gastly"
, "Exeggcute"
, "Magnemite"
, "Bulbasaur"
, "Voltorb"
, "Rhyhorn"
, "Cubone"
, "Squirtle"
, "Doduo"
, "Shellder"
, "Ponyta"
, "Machop"
, "Kakuna"
, "Golbat"
, "Abra"
, "Raticate"
, "Diglett"
, "Jigglypuff"
, "Jynx"
, "Dratini"
, "Seel"
, "Charmander"
, "Tangela"
, "Vulpix"
, "Dodrio"
, "Pikachu"
, "Koffing"
, "Metapod"
, "Fearow"
, "Scyther"
, "Omanyte"
, "Pidgeot"
, "Poliwhirl"
, "Tauros"
, "Onix"
, "Hypno"
, "Magmar"
, "Kabuto"
];
 
 /* less than 0.1% spawn rate */
var medium = [
  "Nidorina"
, "Golduck"
, "Nidorino"
, "Tentacruel"
, "Seaking"
, "Parasect"
, "Electabuzz"
, "Arbok"
, "Venomoth"
, "Weepinbell"
, "Graveler"
, "Gloom"
, "Kingler"
, "Grimer"
, "Haunter"
, "Beedrill"
, "Ivysaur"
, "Sandslash"
, "Slowbro"
, "Wartortle"
, "Machoke"
, "Seadra"
, "Starmie"
, "Primeape"
, "Kadabra"
, "Magneton"
, "Butterfree"
, "Persian"
, "Hitmonchan"
, "Rhydon"
, "Farfetch'd"
, "Electrode"
, "Marowak"
, "Hitmonlee"
, "Dragonair"
, "Wigglytuff"
, "Aerodactyl"
, "Venasaur"
, "Nidoking"
, "Arcanine"
, "Flareon"
, "Weezing"
, "Snorlax"
, "Cloyster"
, "Dugtrio"
, "Exeggutor"
, "Vaporean"
, "Dewgong"
, "Chansey"
, "Charmeleon"
, "Nidoqueen"
, "Clefable"
, "Jolteon"
, "Porygon"
, "Poliwrath"
, "Rapidash"
, "Lickitung"
];
 
 
/* less than 0,01% spawn rate */
var rare = [
  "Vileplume"
, "Kangaskhan"
, "Ninetails"
, "Raichu"
, "Alakazam"
, "Machamp"
, "Blastoise"
, "Gengar"
, "Omastar"
, "Lapras"
, "Victreebell"
, "Golem"
, "Gyrados"
, "Kabutops"
, "Charizard"
, "Muk"
, "MrMime"
, "Dragonite"
];

/*
 * Just uncoment what you want to filter. 
 * By default, only removing most commons. 
 */
var filtered = commons.concat(
//  commons2
//, medium
//, rare
);
    

jQuery( document ).ready(function(){ 
  window.setInterval(function(){
    for( var i = 0; i < filtered.length; i++) {
      $("img[title='"+filtered[i]+"']").parent().css("display", "none")
    }
  }, 500) 
});