Skip to content

Instantly share code, notes, and snippets.

@ariunbayar
Last active April 10, 2017 12:22
Show Gist options
  • Save ariunbayar/41c584fc6a6f0afe3d6974e728264690 to your computer and use it in GitHub Desktop.
Save ariunbayar/41c584fc6a6f0afe3d6974e728264690 to your computer and use it in GitHub Desktop.
Shows map image in match list of a users profile
// ==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