Thorny_Insight@lemm.ee to No Stupid Questions@lemmy.world · 7 months agoHow do I use uBlock to hide threads with certain urls?message-squaremessage-square27fedilinkarrow-up138arrow-down13file-text
arrow-up135arrow-down1message-squareHow do I use uBlock to hide threads with certain urls?Thorny_Insight@lemm.ee to No Stupid Questions@lemmy.world · 7 months agomessage-square27fedilinkfile-text
The filter I use to hide threads based on keywords doesn’t seem to work for urls but I’m sure this is possible aswell.
minus-squareResistentialism@sopuli.xyzlinkfedilinkEnglisharrow-up1·7 months agoIs UBlacklist what you’re looking for? I don’t fully get the question, but I know that blocks urls from search engines (it supports Google, duckduckgo and others, but you’d need to double check.)
minus-squareThorny_Insight@lemm.eeOPlinkfedilinkarrow-up3·7 months agoI have custom rule for uBlock Origin that hides threads from my feed containing the specified keyword. In this case the word is “Elon” lemm.ee##div.post-listing:has(span:has-text("/elon/i")) I’m looking for a similar string of code(?) that will block threads with a link to specific web pages, for example motherjones.com
minus-squareResistentialism@sopuli.xyzlinkfedilinkEnglisharrow-up2·7 months agoOh, gotcha, my bad, I misread it. I don’t have any coding knowledge, so I’m a bit useless here sorry. Wouldn’t it be possible to just add the site like? Lemme.ee##div.post-listing:has(span:has-text(“/motherjones.com/i”)) I’m assuming the code ignores hyperlinks and just looks at the code to find a certain string?
minus-squareThorny_Insight@lemm.eeOPlinkfedilinkarrow-up2·edit-27 months agoI tried but to no avail. Funnily enough though, it does trigger for usernames.
minus-squareResistentialism@sopuli.xyzlinkfedilinkEnglisharrow-up1·7 months agoWell, hey, at least you know how to do that now!
Is UBlacklist what you’re looking for? I don’t fully get the question, but I know that blocks urls from search engines (it supports Google, duckduckgo and others, but you’d need to double check.)
I have custom rule for uBlock Origin that hides threads from my feed containing the specified keyword. In this case the word is “Elon”
lemm.ee##div.post-listing:has(span:has-text("/elon/i"))
I’m looking for a similar string of code(?) that will block threads with a link to specific web pages, for example motherjones.com
Oh, gotcha, my bad, I misread it.
I don’t have any coding knowledge, so I’m a bit useless here sorry.
Wouldn’t it be possible to just add the site like?
Lemme.ee##div.post-listing:has(span:has-text(“/motherjones.com/i”))
I’m assuming the code ignores hyperlinks and just looks at the code to find a certain string?
I tried but to no avail. Funnily enough though, it does trigger for usernames.
Well, hey, at least you know how to do that now!