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.

目前為 2014-05-09 提交的版本,檢視 最新版本

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

You will need to install an extension such as Tampermonkey to install this script.

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name        WoTStatScript - Forums
// @version     0.51
// @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+"' 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;'><img src='http://wotlabs.net/sig/"+server+"/"+author_name+"/signature.png'></div>";
}