WoTStatScript - Forums

Adds a part of the signature from WoTLabs underneath the posterbox info for every post in a thread in the World of Tanks forums.

Per 10-05-2014. Zie de nieuwste versie.

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey, Greasemonkey of Violentmonkey.

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey of Violentmonkey.

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey of Violentmonkey.

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey of Userscripts.

Voor het installeren van scripts heb je een extensie nodig, zoals {tampermonkey_link:Tampermonkey}.

Voor het installeren van scripts heb je een gebruikersscriptbeheerder nodig.

(Ik heb al een user script manager, laat me het downloaden!)

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

(Ik heb al een beheerder - laat me doorgaan met de installatie!)

// ==UserScript==
// @name        WoTStatScript - Forums
// @version     0.6
// @description Adds a part of the signature from WoTLabs underneath the posterbox info for every post in a thread in the World of Tanks forums.
// @author      Orrie
// @namespace   http://forum.worldoftanks.eu/index.php?/topic/263423-
// @icon        http://dl.dropboxusercontent.com/u/12497046/wot/projects/statscript/img/icon.png
// @include     http://forum.worldoftanks.eu/index.php?/topic/*
// @include     http://forum.worldoftanks.com/index.php?/topic/*
// @match       http://forum.worldoftanks.eu/index.php?/topic/*
// @match       http://forum.worldoftanks.com/index.php?/topic/*
// @grant       none
// ==/UserScript==

var woticon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAWdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjA76PVpAAACX0lEQVQ4T5WS3U9SYRzHWS44HDhQcADlKKKt2lp/ghetNtQtc2bIBghGwhImINAYLxr4LghlVnhT2bqirnO13NqsjNGLd677Xtam921O+vZAxzHny+qzne08z+/3+e55zu8I9mNu/g5m0zPb6dTMdmIkvpW4Gd+yWXt+8OXDmcmkcaJJjwZOu+vRNzagXOPb9qfc0NSow6e1z/j6/RvWv6xjdXUFH4rv8PDBApr1uoNDygWVUoH0rQyiIzH4Aj4UPxYwNT2KYHAQrn4rrvb2QN+gRYjUeK3Kvdz9Uk3NEVAiEepUStTXqfH2zTKCQ24wtBhyGQOphIaYohAJB7Z4rUommylpNBoUigUEgj7UqZV48fwZHH1mcGoF1t6/xEC/BRISFo+E9gZE4uESyyrxankJnoFrOC5nkH+Sg8thhkohR37xNvrtV8gpxLBZjb94rUpydLjEKpV4ml+Ey2kFLaaQfzwHi6kTFCXCWMyL7ovnIaUp9Jq79waEbvhKMoZB7u40zD0dkElpPFoYw+XOVoiEQliM7ehqa4HimAx9NtPeAIvZ+JtlFUhNhDCfCSM46MR00ouOtnMIeD3IjgfgtBgqV3DYrSVeq6LTcT9Tk9FKQ9BtQjxkxywJ6OowYCrhgdvaDkZCkVEay9d4zWu74bTqjfHhABmlkHxtCqmEH60XWiAi6/Ke/7qFhIhXSCv919gHrYbdSMZ8lXlHh5wwXjJAKDyKybiXyPTh8g71nGYzGfXjzKlmcLUs0skQ5Mw/yjvouNrN2YkoshOR8j/xf/IOZ0+f3CTjLJDXA2SB4A9g9CbBRs2PmgAAAABJRU5ErkJggg==";

var server = host = document.location.host.match(/\.([^\.]+)$/)[1];
if (server == "com") {
	server = "na";
}
var post_block = document.getElementsByClassName('post_block');
for (var i=0; i<post_block.length; i++) {
	var author_name = post_block[i].getElementsByClassName('ipsUserPhotoLink')[0].getAttribute("hovercard-id");
	var author_info_box = post_block[i].getElementsByClassName('author_info')[0];
	author_info_box.innerHTML += "<a href='http://worldoftanks."+host+"/community/accounts/named/"+author_name+"' target='_blank' style='display: inline-block; margin: 5px 0 0;'>Player Profile <img src='"+woticon+"' style='margin: 0px 0px 3px;'/></a><div style='height: 100px; width: 106px; overflow: hidden; margin: 5px 0 0;'><a href='http://wotlabs.net/"+server+"/player/"+author_name+"' target='_blank'><img src='http://wotlabs.net/sig/"+server+"/"+author_name+"/signature.png'></a></div>";
}