Last active
December 16, 2015 11:19
-
-
Save milot-mirdita/5426598 to your computer and use it in GitHub Desktop.
Show Unplayed Heros in Dota2 from your person Dotabuff heros page.
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
(function() { | |
var all = ["Abaddon","Alchemist","Ancient Apparition","Anti-Mage","Axe","Bane","Batrider","Beastmaster","Bloodseeker","Bounty Hunter","Brewmaster","Bristleback","Broodmother","Centaur Warrunner","Chaos Knight","Chen","Clinkz","Clockwerk","Crystal Maiden","Dark Seer","Dazzle","Death Prophet","Disruptor","Doom","Dragon Knight","Drow Ranger","Earthshaker","Earth Spirit","Elder Titan","Ember Spirit","Enchantress","Enigma","Faceless Void","Gyrocopter","Huskar","Invoker","Io","Jakiro","Juggernaut","Keeper of the Light","Kunkka","Legion Commander","Leshrac","Lich","Lifestealer","Lina","Lion","Lone Druid","Luna","Lycan","Magnus","Medusa","Meepo","Mirana","Morphling","Naga Siren","Nature's Prophet","Necrophos","Night Stalker","Nyx Assassin","Ogre Magi","Omniknight","Outworld Devourer","Phantom Assassin","Phantom Lancer","Phoenix","Puck","Pudge","Pugna","Queen of Pain","Razor","Riki","Rubick","Sand King","Shadow Demon","Shadow Fiend","Shadow Shaman","Silencer","Skywrath Mage","Slardar","Slark","Sniper","Spectre","Spirit Breaker","Storm Spirit","Sven","Templar Assassin","Terrorblade","Tidehunter","Timbersaw","Tinker","Tiny","Treant Protector","Troll Warlord","Tusk","Undying","Ursa","Vengeful Spirit","Venomancer","Viper","Visage","Warlock","Weaver","Windranger","Witch Doctor","Wraith King","Zeus"], res = [], min_games = 0; | |
$('.cell-xlarge').each(function() { | |
if(($($(this).closest('tr').find('td')[2]).text() - 0) > min_games) | |
res.push($(this).find('a').text()); | |
}); | |
var unplayed = all.filter(function(i) {return !(res.indexOf(i) > -1);}); | |
alert("Unplayed: " + unplayed + "(Total: " + unplayed.length + ")"); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment