Show Hidden Comments

Shows comments that are under rating threshold

// ==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 https://greasyfork.dpdns.org/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);
        }
    }());
}());
长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元