Questions
-
Is there an add-on that allows me to do the following?
-
What’s a very easy way to do the following via programming? js or whatever.
-–
I want to delete or hide a HTML section that has specific text. Using regex on the source HTML is quick, dirty, and ugly but is there another very easy way? There isn’t - is there?
The thumb is an example. I want the Christmas shit gone.
So - if \b(Christmas)\b is in a TR then hide or delete it.
Quick/dirty is key. And I don’t want to spend untold hours trying to learn and then failing to learn how to programmatically do it the right way. I know regex can be a nightmare but I want to do be able to do the removal/hiding at other sites too.
I don’t see another way to reuse this method on any site. [Edit: That was confusing.]

You can do it with just ublock but it still slow the page down https://superuser.com/questions/1285891/ublock-hide-any-element-that-contains-text-with-a-given-word
Thanks.
It will slow down your browser on every page…
Do they mean every page on example.com or every page I visit on the net?
Forward slashes like
:has-text(/Target words/)are not needed. If you use them, the expression inside will be evaluated as RegEx which will cause even more workload.Heh.
By default ublock won’t want to apply this type of filter to every page, just the pages of whatever site you make the rule for. That’s why the second comment is talking about going into advanced settings to enable it globally. If you do that it will slow down EVERY page. It might not be noticeable, depends on your hardware.
Thanks. Ah.
going into advanced settings to enable it globally
I’ll leave that off. I don’t want to create unneeded headaches for myself. Per site is fine. Sorry to waste your time. I should have thought more and read more before insta-posting in worry. Actually - I should always do that. But that’s another story.
I’m not sure on the implementation but if you want a cross-site thing you’d want to have a Violent Monkey user-script that can filter out the entries with Christmas.
cross-site thing
I’ll edit my post. I see it’s confusing. I didn’t mean anything complicated. I simply meant I want to do be able to do the removal/hiding at other sites too.
It’d still be a user-script, you’d have to have it run when you connect to a website, then select the table row and search for the string “Christmas” and then remove it. You can have it be just for metacritic as well.
Has some snippets for showing how you can observe the dom and then do an action based on a node you find.
Otherwise, you might take a crack at using Ublock Origin’s filter creator that allows you to zap elements and create a per-site filter though I don’t know how granular its filtering options are and I think it’s mostly just if you know that a specific element has things you don’t want in it.
But why Violentmoney?
This extension is no longer supported on Chrome…
Why not just Greasemonkey?
-–
Ublock Origin’s filter creator that allows you to zap elements and create a per-site filter though I don’t know how granular its filtering options are
I could be missing something but in their Reddit sub - there is zero non-programmer user support. It’s a shame but answers often link to highly technical docs that are totally incomprehensible to a normie. But for shits and giggles - I’ll google for regex stuff and Ublock. God help me if I find out regex in Ublock is possible though. I won’t be able to understand anything. Haha.
Greasemonkey was superseded by violentmonkey, and tampermonkey is proprietary. It doesn’t work on google chrome specifically because of it supporting the more restrictive manifest version 3 and dropping manifest version 2. Other chromium based browsers should work like brave but Firefox will never drop manifest v2.
Web stuff is highly technical, which is why a lot of companies use the web to push anti features. Wish you luck.



