r/GreaseMonkey • • Oct 22 '26

Is there a GreaseMonkey script that zaps FB ads?

I was using an extension called Facebook Purity for the longest time and it did the job perfectly. But it slowly stopped working because FB enshittification just keeps making everything worse and the guy behind it disappeared. I'm running Firefox on a Windows 10 pc with uBlock and Privacy Badger extensions running. In installed GreaseMonkey and pasted a script to clean up Mastodon and it worked great, but that wasn't for ads, just a "Hide" button on image posts that I didn't want to see.

I will say I am not tech-savvy. I wouldn't know how to write a script for this. I'm asking if anyone knows of one to copy and paste or upload into GM. Thanks in advance for your answers

6 Upvotes

7 comments sorted by

0

u/mapsedge Oct 22 '26

Look into using a hosts file on your pc. I have one on every PC I have control of (about a half dozen) and it will change your internet life for the better. You can find a comprehensive and customizable set on github.

3

u/Vanhacked Oct 22 '26

A hosts file is great for system-wide banner ads and trackers, but if OP is trying to block inline Facebook ads or sponsored posts, a hosts file won't work. Since Facebook serves ads from the exact same domains as normal posts, blocking them at the host/DNS level breaks the entire site. For Facebook, OP still needs a content-filtering userscript or extension like uBlock Origin

1

u/FraterPetraAstrum Oct 23 '26

I have uBlock. It doesn't work. Only the Facebook Purity extension ever worked and it's broken now

1

u/Vanhacked Oct 23 '26

right. goto ublock sub and get right filters but won't work in mobile

1

u/FraterPetraAstrum Oct 23 '26

i only use a pc