您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Counts polls properly when they are public (or mod of the section)
// ==UserScript== // @name HF Poll Counter // @namespace Xerotic // @description Counts polls properly when they are public (or mod of the section) // @require http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js // @include **hackforums.net/polls.php** // @run-at document-end // @version 1.1 // ==/UserScript== var total_count = 0; $('.quick_keys').first().find('tr').each(function() { if(!$(this).children().first().hasClass('thread')) { if($(this).children().first().hasClass('tfoot')) { $(this).children().first().next().html('<strong>' + total_count + ' votes</strong>'); } else { $(this).children().first().next().next().html($(this).children().first().next().find('a').length); total_count += parseInt($(this).children().first().next().find('a').length); } } });