Advertisement
poochy666

gfy trolls

Feb 26th, 2016
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. // ==UserScript==
  2. // @name gfy.com
  3. // @description block threads, posts, etc from certain users
  4. // @include http://gfy.com/*
  5. // @include http://*.gfy.com/*
  6. // @require https://code.jquery.com/jquery-1.7.2.min.js
  7. // @version 1.0
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. var hide_users = [
  12. 'Juicy D. Links',
  13. 'Mr Pheer',
  14. 'mineistaken',
  15. 'TheSquealer',
  16. '420',
  17. '#23',
  18. 'Brian837',
  19. 'desertfoxx',
  20. 'xXXtesy10',
  21. 'L-Pink',
  22. 'escorpio',
  23. 'Sid70',
  24. 'Horatio Caine'
  25. ];
  26.  
  27. $(document).ready(function () {
  28. $('#threadslist tbody tr').each(function (thread_index, thread_value) {
  29. var thread_block = $(this);
  30. var thread_starter = $('span[style="cursor:pointer"]', this).text();
  31. $(hide_users).each(function (hide_index, hide_user) {
  32. if (thread_starter === hide_user) {
  33. // $('#threadslist tbody:last').append("<tr style='opacity: 0.5'>" + thread_block.html() + "</tr>");
  34. thread_block.remove();
  35. }
  36. });
  37. });
  38.  
  39. $('table[id^="post"]').each(function (post_index, post_value) {
  40. var post_block = $(this);
  41. var post_author = $('a.bigusername', this).text();
  42. $(hide_users).each(function (hide_index, hide_user) {
  43. if (post_author === hide_user) {
  44. post_block.remove();
  45. }
  46. }); //removes entire post of someone on the ignore list.
  47.  
  48. /** $('div[style^="margin:"]').each(function (post_index, post_value) {
  49. var post_block = $(this);
  50. var post_author = $('strong', this).text();
  51. $(hide_users).each(function (hide_index, hide_user) {
  52. if (post_author === hide_user) {
  53. post_block.remove();
  54. }
  55. });
  56. }); //removes any quotes someone may have made of a person on ignore, even if quotes multiple times but they have to have the name in the quote
  57. **/
  58.  
  59. }); //end of nested forloops for checking both posts and quotes.
  60. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement