De-Politicizing the Web

A relative on Facebook shared an image saying that it would be nice if we could hide people’s comments if they are political.
12809801_10205854371018481_8413213896544596009_n
So, I did just that.
This was my first introduction to writing a web extension/plugin. It’s actually very easy using Google’s documentation and code samples.
I came up with political keywords and replace them with an ellipsis. Easy as pie. If the scope is not limited, it could have some undesired effects:
Untitled1
Turns into:
Untitled
But when limited to just Facebook, it has the desired effects. This was a post I created a week or so ago. (Guess who I’m talking about).
Capture
The code isn’t pretty, but it does the trick.
Capture
You can download the extension here.
GitHub repo here.


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *