gfy ignore list

block threads, posts, etc from certain users

  1. // ==UserScript==
  2. // @name gfy ignore list
  3. // @description block threads, posts, etc from certain users
  4. // @include http://gfy.com/*
  5. // @include http://*.gfy.com/*
  6. // @require http://code.jquery.com/jquery-1.11.3.min.js
  7. // @version 1.1
  8. // @grant none
  9. // @namespace https://greasyfork.org/users/19347
  10. // ==/UserScript==
  11.  
  12.  
  13.  
  14. function ignore()
  15. {
  16.  
  17. var hide_users = ['DVTimes','Rochard','Twitter','Juicy D. Links'];
  18.  
  19. $(document).ready(function () {
  20. $('tbody#threadbits_forum_26 tr').each(function (thread_index, thread_value) {
  21. var thread_block = $(this);
  22. var thread_starter = $('span[style="cursor:pointer"]', this).text();
  23. $(hide_users).each(function (hide_index, hide_user) {
  24. if (thread_starter === hide_user)
  25. {
  26. thread_block.remove();
  27. }
  28. });
  29. });
  30. $('table[id^="post"]').each(function (post_index, post_value) {
  31. var post_block = $(this);
  32. var post_author = $('a.bigusername', this).text();
  33. $(hide_users).each(function (hide_index, hide_user) {
  34. if (post_author === hide_user)
  35. {
  36. post_block.remove();
  37. }
  38. });
  39. });
  40. });
  41.  
  42.  
  43. }
  44.  
  45. setInterval(ignore, 0);