block threads, posts, etc from certain users
当前为
// ==UserScript==
// @name gfy ignore list
// @description block threads, posts, etc from certain users
// @include http://gfy.com/*
// @include http://*.gfy.com/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js
// @require https://greasyfork.org/scripts/13532-hide-users/code/hide_users.js
// @version 1.0
// @grant none
// @namespace https://greasyfork.org/users/19347
// ==/UserScript==
function ignore()
{
$(document).ready(function () {
$('tbody#threadbits_forum_26 tr').each(function (thread_index, thread_value) {
var hide_users = ['DamianJ','DVTimes','Rochard','Twitter','Juicy D. Links'];
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)
{
thread_block.remove();
}
});
});
$('table[id^="post"]').each(function (post_index, post_value) {
var post_block = $(this);
var post_author = $('a.bigusername', this).text();
$(hide_users).each(function (hide_index, hide_user) {
if (post_author === hide_user)
{
post_block.remove();
}
});
});
});
}
setInterval(ignore, 0);