// ==UserScript== // @name gfy.com // @description block threads, posts, etc from certain users and block threads by title // @include http://gfy.com/* // @include http://*.gfy.com/* // @require http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js // @version 1.2 // @grant none // ==/UserScript== var hide_users = [ 'TTI-Rich', 'DVTimes', 'Twitter', 'brassmonkey', 'ShowMe69', 'AFSC', 'jerkules', 'desertfoxx', 'xXXtesy10', 'clickity click', 'wehateporn', 'marlboroack', 'EddyTheDog', 'Tumblr', 'Grapesoda', 'emill', 'arena18', 'Harmon', 'Rob', 'Muad\'Dib', 'yuu', 'MyPornoMovie', 'GspotProductions', 'windycityxx', 'JohnnyClips' ]; var hide_titles = [ 'trump', 'obama', 'president', 'clinton', 'republican', 'democrat' ]; var visible = true; //var visible = false; $(document).ready(function () { $("body").css("background", "rgba(0, 0, 0, 0) url('/skins/gfy/skin/bg_org.gif') repeat scroll 0 0"); $('#threadslist tbody tr').each(function() { var removed = false; var thread_block = $(this); var thread_starter = $('span[style="cursor:pointer"]', this).text(); $(hide_users).each(function (hide_index, hide_user) { if (thread_starter === hide_user) { if (visible) {$('#threadslist tbody:last').append("" + thread_block.html() + "");} thread_block.remove(); removed = true; return false; } }); var thread_starter = $('a[id^="thread_title_"]', this).text().toLowerCase(); $(hide_titles).each(function (hide_index, hide_title) { if ((thread_starter.indexOf(hide_title) > -1) && (removed != true)) { if (visible) {$('#threadslist tbody:last').append("" + thread_block.html() + "");} thread_block.remove(); return false; } }); }); $('table[id^="post"]').each(function() { var post_block = $(this); var post_author = $('a.bigusername', this).text(); $(hide_users).each(function (hide_index, hide_user) { if (post_author === hide_user) { if (visible) {$(post_block).find("td.alt2").css("background", "black").next().css("background", "black");} else {post_block.remove();} return false; } }); if (!visible) { $('div[style^="margin:"]').each(function (post_index, post_value) { var post_block = $(this); var post_author = $('strong', this).text(); $(hide_users).each(function (hide_index, hide_user) { if (post_author === hide_user) { post_block.remove(); } }); }); } }); });