Last active
April 10, 2017 12:22
-
-
Save ariunbayar/41c584fc6a6f0afe3d6974e728264690 to your computer and use it in GitHub Desktop.
Shows map image in match list of a users profile
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 New Userscript | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match http://www.voobly.com/profile/view/*/Matches* | |
// @grant none | |
// ==/UserScript== | |
(function() { // blabla | |
'use strict'; | |
$('#pagebrowser1 table tr').each(function(){ | |
var link = $(this).find('td:eq(5) a'); | |
if (link.length == 0) return; | |
var match_id = link.attr('href').substr(33); | |
var img = $('<img>').attr('src', 'http://www.voobly.com/game/AOC/gameimage/' + match_id); | |
img.insertAfter(link); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment