philihpAboutPGPLightning

Mute George Takei stories from your Facebook News Feed

Philihp Busby,0 min read

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.

http://userscripts.org/scripts/review/133516 

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.

GitHub · Bluesky · LinkedIn · Instagram · KeybaseRSS

Built from 8f0906ac CC BY 4.0 — with love from San Francisco.