Greasy Fork

Greasy Fork is available in English.

Show Hidden Comments

Shows comments that are under rating threshold

目前为 2016-08-29 提交的版本,查看 最新版本

// ==UserScript==
// @name           Show Hidden Comments
// @description    Shows comments that are under rating threshold
// @include        http://www.kongregate.com/games/*
// @version 0.0.1.20160829231542
// @namespace http://greasyfork.icu/users/32649
// ==/UserScript==

(function(){
    var count = 0;
    (function(){
        var all = document.evaluate("//span[@class='comment_content'][contains(@style,'display')][contains(@style,'none')]", document, null, 7, null);
        for (var i = 0, item; item = all.snapshotItem(i); i++) {
            item.style.display = 'block';
            item.style.color = '#999';
        }
        if (count++ < 10) {
            setTimeout(arguments.callee, 500);
        }
    }());
}());