View Single Post
Old 02-04-2019, 07:54 PM  
Mr Pheer
Living inside your head.
 
Mr Pheer's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: In your AirBNB
Posts: 20,561
Quote:
Originally Posted by JesseQuinn View Post
thank you, I didn't have your extension on the comp I use for fucking around/personal stuff. yes I can just scan over crap but it helps me keep my view of recent threads free of shit not worthy of space and saves me time when I take a break to read here.

question though: it's on my bucket list to end up on someone's ignore list but I have yet to achieve this goal to the best of my knowledge. prithee kind sire, could you add me in to the default settings for the update? it would delight me greatly although I would still be standing on the shoulders of giants (RIP Relic and Coup)

not sure why DE or Mark, Crus, GSpot Thommy BM are there and tbh wouldn't block any but one member on your list, but I like the self-editing feature for that

gracias for your tremendous contribution to this space
That's a very strange request, but ok.

Code updated.

Code:
// ==UserScript==
// @name gfy.com
// @description block threads, posts, etc from certain users
// @include https://gfy.com/*
// @include http://*.gfy.com/*
// @include https://gfy.com/*
// @include https://*.gfy.com/*
// @require https://code.jquery.com/jquery-1.7.2.min.js
// @version 1.0
// @grant none
// ==/UserScript==

var hide_users = [
'beerptrol', 'JesseQuinn', 'Paul Markham', 'Spunky', 'Bladewire', '2MuchMark', 'crockett', 'Rochard', 'Dead Eye', 'GspotProductions', 'crucifissio', 'blackmonsters', 'thommy', 'RedFred'
];

$(document).ready(function () {
$('#threadslist tbody tr').each(function (thread_index, thread_value) {
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) {
// $('#threadslist tbody:last').append("<tr style='opacity: 0.5'>" + thread_block.html() + "</tr>");
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();
}
}); //removes entire post of someone on the ignore list.

$('div[style^="margin:"]').each(function (post_index, post_value) {
var post_block = $(this);
var post_block_quote = $('div[style^="font-style:italic"]', this);
var post_author = $('strong', this).text();
$(hide_users).each(function (hide_index, hide_user) {
if (post_author === hide_user) {
//post_block.remove();
$(post_block_quote).html("<br><font color=#998877><i>I'm a useless piece of </i></font><font size=6>&#128169</font>");
}
});
}); //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

}); //end of nested forloops for checking both posts and quotes.
});
Mr Pheer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote