您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a part of the signature from WoTLabs underneath the posterbox info for every post in a thread in the World of Tanks forums.
当前为
// ==UserScript== // @name WoTStatScript - Forums // @version 0.7 // @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== // data uri var icon_arrow = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPwAAAAJCAYAAAAW9EHNAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAWdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjA76PVpAAABbUlEQVRoQ+2ZMU7DQBBFHagoU5IKWUSGKIqUGCkX8BVyhVwhV4hoXZEq96CkzRWQqAEBF0DL/PGuYqSJFxm7+1962llNs1v8ndndpFxMcuFZWCciGQ/CI+KYnHOEkJ5oo+/BRf5+NXj5HJ3dY44YaDIIBt/dzT/Km2xY5reb/XLpyvl05dMnZS2SEBKnT31dnj+9ZokT8w9hfMThAFCVs6xQky8mW8xhfqDJBlkbIYTE6VNi9OLt+mhyxGaVV9PPxqnEa42l2vu0KWsjhJA4fQsG91U+tat8aOVlhOl9xW+8y1sbIYTE6Vti9E0wOUyPWA6BnU//buPR2lfVPis0eULWRggh3fAfhQqPGKZHW49WX5P1hzpUd33A+8NLvbVIQkg3tFVo4cXgq1p1P97hxdz4ljv4+KGq7uNUkw2yFkkI6Ya2grmDwWvVvfKzGBz/8FuMfo5Y/+RjshZJCOmGNhJj5/7ert/qPvZ+TpIfY9TnBuIn9R8AAAAASUVORK5CYII="; // style contents var style = document.createElement('style'); style.className = "wotstatscript"; style.type ="text/css"; style.innerHTML = ".author_info {height: 380px;}" + ".user_details > br {display: none;}" + ".basic_info {margin: 0 0 4px;}" + ".user_stats {width: 106px;}" + ".user_stats table {margin: 5px 0;}" + ".user_stats td {padding: 0 0 2px; font-weight: bold;}" + ".user_stats td a { background: url("+icon_arrow+") no-repeat scroll 0 2px rgba(0, 0, 0, 0); padding: 0 0 0 10px; vertical-align: middle;}" + ".user_stats td a:hover {background: url("+icon_arrow+") no-repeat scroll -244px 2px rgba(0, 0, 0, 0);}" + ".user_stats .wl_sig {background: #FFFFFF; border: 1px solid #D5D5D5; box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1); height: 100px; padding: 1px; width: 106px; overflow: hidden;}" + ".user_stats .wl_sig:hover {border: 1px solid #7D7D7D;}" + ".user_stats .wl_sig a {display: block; overflow: hidden; width: 106px;}" + ""; document.head.appendChild(style); // end style // get server info var server = host = document.location.host.match(/\.([^\.]+)$/)[1]; if (server == "com") { server = "na"; } // looping for every post 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 = post_block[i].getElementsByClassName('author_info')[0]; var stat_div = document.createElement('div'); stat_div.className = "user_stats"; stat_div.innerHTML = "<table><tr><td><a href='http://worldoftanks."+host+"/community/accounts/named/"+author_name+"' target='_blank'>Player Profile</a></td></tr><tr><td><a href='http://wotlabs.net/"+server+"/player/"+author_name+"' target='_blank'>WoTLabs</a></td></tr><tr><td><a href='http://www.noobmeter.com/player/"+server+"/"+author_name+"' target='_blank'>Noobmeter</a></td></tr></table><div class='wl_sig'><a href='http://wotlabs.net/"+server+"/player/"+author_name+"' target='_blank'><img src='http://wotlabs.net/sig/"+server+"/"+author_name+"/signature.png'></a></div>"; author_info.appendChild(stat_div); }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址