I go to Facebook every few days, weeks or whatever. Kids’ pics. Volleyball happenings. Doings of people I’ve known over the years.
What’s happened to my follow-feed, though, is people I know to be fine people in real life appear in the feed as the girl on the left:
This is disheartening at best.
Politics is entertaining, but, golly, let’s not scream at our favorite character on TV when they do something dumb. Get a grip.
But, of course, the other guy will never get a grip.
So, for Firefox, there’s Grease Monkey and my quick and dirty Grease Monkey script, FaceBookFix.user.js, to the rescue.
This script simply takes Facebook posts off screen if they contain, in text form (sadly not in images), any of a list of words.
It’s not heavily tested, to say the least. Which is to say, I tried it a couple times.
I made it easy to add or delete banned words. Non-programmers can change the script if they can find it on their disk and save it as a text file from WordPad or a better text editor.
The results are nice. My feed is now pleasant. Again. “Never do yourself what a computer can do for you,” so the computer now lets me see the real news un-flooded by noise. (If this post makes it to Facebook, I can’t write “f*** news” or the script will make the post invisible to me!)
Oh. Here’s the whole script as of this moment:
// @name FaceBookFix
// @namespace https://www.tranzoa.net/~alex
// @description Get rid of sad Facebook tantrums. https://www.tranzoa.net/alex/public_stuff/FaceBookFix.user.js
// @include https://www.facebook.com/
// @version 1
// @grant none
FaceBook posts containing any of these listed strings are whacked.
The strings are in in no particular order.
Change as you see fit.
Non-programmers, leave the last one as the last one.
Non-programers, for syntax reasons, do not put any:
single-quote ( ' )
pipe/vertical_stroke ( | )
backslash ( \ )
characters in any of the strings.
var find_these_strings = [
'hilliary', // I forget other Internet commenters' alternate spellings. More to come, for sure.
'bernie', // Sorry about this, Bernie-from-Dimas-days. Your brand has been trashed.
'george bush', // 'bush' is just too generic
' g bush',
' gw bush',
' h bush',
' hw bush', // did I get these bushes right?
'kkk', // why are Hollywood and the news guys obsessed with the KKK? No one in the real world cares about them.
'mcconnell', // maybe this should be only mitch McConnell
'house of rep',
'daily show', // ? poeple seem to feel this show is really important when it discusses politics
'fuck', // the whole profanity list should be here.
'Note: Leave this here at the end of the list.'
find_these_strings = find_these_strings.join('|').toLowerCase().split('|');
find_these_strings.pop(); // get rid of the comment at the end
var divs = document.getElementsByTagName("div"); // Find all DIV elements in the page
// window.console.log("fixing " + Date.now() + " " + divs.length);
var el = divs[el_number];
if ((el.id != undefined) && el.id.startsWith('hyperfeed_story_id_')) // For each post in the feed
var htm = el.innerHTML.toLowerCase(); // Look for any of the strings without regard to case
// window.console.log("scanning " + el.id + " " + htm.length);
for (string_number in find_these_strings)
var fs = find_these_strings[string_number]; // For each of the strings to find
if (htm.indexOf(fs) >= 0) // Is the string in the post in text form? (sadly missing them in images and videos)
el.style.display = 'none'; // Yes. Take the post off screen
// window.console.log("whacked: " + fs + " in " + el.id);
break; // And don't keep looking in the this post for more matches.
var timeout_every_couple_seconds = window.setInterval(fix_this_facebook_thing, 2017);