Mute George Takei stories from your Facebook News Feed
George Takei (aka Lt. Sulu from Star Trek), I like how you've positioned yourself along with Wil Wheaton as this hybrid nerd celebrity and gay rights activist, and the stories you post on the facebook sometimes make me chuckle, but it's very annoying how you'll post something, then my friends will keep clicking that Share button on it over the course of the next few weeks and I get to see it again and again.
So I wrote this Greasemonkey/Tampermonkey script that will ignore thing shared from you.
It's really simple. Here's the code:
$(document).bind('DOMSubtreeModified',function() {
$('.actorName, .uiAttachmentDetails').each(function() {
if($(this).text() == 'George Takei')
$(this).parents('.uiUnifiedStory').hide();
});
});
Basically it finds instances where elements have the class "actorName
", and if the content is "George Takei
", then it goes up the DOM tree and finds the root element that contains the entire story, and it hides it.
Update: Thanks Norah Riley (@super_triangle) for finding that the class was sometimes "uiAttachmentDetails
" as well.