Remove Facebook ads

Uses mutation observer to take action when elements added to page. Looks for ads based on Spon appearing in non hidden elements!

Δημιουργός
Skarn
Ημερήσιες εγκαταστάσεις
0
Σύνολο εγκαταστάσεων
166
Βαθμολογίες
0 0 0
Έκδοση
0.6
Δημιουργήθηκε την
31/01/2020
Ενημερώθηκε την
16/05/2020
Μέγεθος
5 KB
Άδεια
Μη διαθέσιμη
Εφαρμόζεται σε

Only tested in Chrome - unsure of conditions that might change (e.g. classes)
Utilises mutation observer to parse added page content for ads.

2020-05-17
Generic retry wrapper was poorly scoped, effectively stopping it from resetting the tries count anew after a success.
I also note that the mutation observer isn't aggregating dom changes as much as I'd like - so it's a good candidate for being debounced so it collects all the changes and performs the ad clean only once after dom changes have ceased.

2020-05-12 Created a generic retry wrapper that is more effective/survives during page view changes to restart observer
2020-05-03 Changed method for identifying visible text and content to style check and regular expression.

Suggestions welcome.

This is for my own and others academic amusement - ads are only hidden and not prevented from downloading in any way.
This script may not be high performance as I fiddle with it and could have a high cost to your CPU and or MEMORY whilst running.