Show Hidden Comments

Shows comments that are under rating threshold

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

  1. // ==UserScript==
  2. // @name Show Hidden Comments
  3. // @description Shows comments that are under rating threshold
  4. // @include http://www.kongregate.com/games/*
  5. // @version 0.0.1.20160829231542
  6. // @namespace https://greasyfork.org/users/32649
  7. // ==/UserScript==
  8.  
  9. (function(){
  10. var count = 0;
  11. (function(){
  12. var all = document.evaluate("//span[@class='comment_content'][contains(@style,'display')][contains(@style,'none')]", document, null, 7, null);
  13. for (var i = 0, item; item = all.snapshotItem(i); i++) {
  14. item.style.display = 'block';
  15. item.style.color = '#999';
  16. }
  17. if (count++ < 10) {
  18. setTimeout(arguments.callee, 500);
  19. }
  20. }());
  21. }());