Comment filter

Filter comments with keywords

  1. // ==UserScript==
  2. // @name Comment filter
  3. // @namespace pxgamer
  4. // @version 0.2
  5. // @description Filter comments with keywords
  6. // @author pxgamer
  7. // @include *kat.cr/*.html
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. var searchStrings = ["Denuvo"];
  15.  
  16. $('.commentText').each(
  17. function() {
  18. for (var i = 0; i < searchStrings.length; i++) {
  19. if ($(this).html().toLowerCase().indexOf(searchStrings[i].toLowerCase()) > -1) {
  20. $(this).parent().parent().parent().hide();
  21. }
  22. }
  23. }
  24. );
  25. })();