Thorny_Insight, to nostupidquestions in How do I use uBlock to hide threads with certain urls?

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

Resistentialism, to nostupidquestions in How do I use uBlock to hide threads with certain urls?

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#.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?

caos, (edited ) to foss German

📲 Welches Custom ROM (mit MicroG) für das Pixel 5?

Ich soll für jemanden ein Pixel 5 flashen und einrichten. Die Person hat bislang ein anderes Gerät mit genutzt und eigentlich ist der Auftrag, auch auf dem Pixel /e/OS zu installieren.

Ich habe nun aber gesehen, dass das Pixel dafür einen Downgrade von Android 14 auf Android 13 braucht, daher bin ich nun am Überlegen, ob ich nicht doch ein anderes empfehlen soll.

Für das Pixel 5 kämen infrage:
­age­OS 21 (Android 14)
­est­OS 20.0 (Android 13)
/e/ t (Android 13)
­OS 14
(Android 13)

Da nur LineageOS und CalyxOS Android 14 für das Pixel 5 anbieten, tendiere ich momentan zu CalyxOS (mit dem ich aber noch keine Erfahrung habe).
Für mich persönlich würde ich ja DivestOS nehmen, aber das wäre doch vielleicht noch etwas weiter von eOS weg (und unterstützt nicht bzw. nur über Umwege). Es sollen auch einige Apps über Aurora installiert werden, die wohl bislang mit MicroG auf eOS gut laufen.
Einen besonders hohen Sicherheitsanspruch gibt es in dem Fall nicht; es soll auch kein Banking und keine Zahlungsdienste o.ä. drauf laufen (nur bspw. einige Spiele, die wohl microG erfordern)

  • Hat jemand von Euch Erfahrung sowohl mit eOS als auch mit CalyxOS und kann von den Unterschieden aus User-Perspektive berichten?
  • Kann man irgendeine Prognose treffen, welches ROM das Pixel 5 mehr oder weniger lang unterstützen wird?

@foss_de

unhinge, to asklemmy in How to block certain words on lemmy feed

I remember seeing a post on lemmy blocking posts with certain words on firefox (and its derivatives) with ublock origin.

  1. Open My filters tab in ublock origin extension settings.
  2. To block posts with word random on lemmy.ml, add this to text field lemmy.ml##div.post-listing:has(span:has-text(“/random/i”))'. i after random/ matches case insensitively.
ed209, to privacy

I'm sure people are aware of this, but @Em0nM4stodon has a bunch of great blog posts on and which you can find here:
https://controlaltdelete.technology/articles/easy-practical-privacy-tips-for-everyone.html
https://controlaltdelete.technology/articles/the-mastodons-guide-to-the-fediverse.html

One big thing I would add: If you must use F*cebook, you can disable most/all of the algorithmic recommendations with the following uBlock Origin custom rules:

www.facebook.com#:contains("Suggested for you"):upward(6)
facebook.com#:has-text(/Reels and short videos/)
www.facebook.com#:contains("Follow"):upward(6):upward(6))

These can be a bit of a moving target but I'll try and keep these up to date!

ZeroCool, (edited ) to technology in Right-wing influencers pledge to bail out Elon Musk after Apple, Disney, others suspend advertising on X

I really wish people would stop whining in the comment sections every time they see an article about Elon Musk and take some initiative to solve their own problems. Open uBlock Origin and add a damn filter. Adjust to your home instance:


<span style="color:#323232;"> lemmy.world##div.post-listing:has(span:has-text("/elon musk/i"))
</span>

div.post-listing is the element to block
:has(args) returns elements where args evaluate to true
span is the element with the title text
:has-text(needle) returns the element if it has the next needle, supports regex with \needle\ and remove case sensitivity with i

Source via lemmy.world

Edit: lol of course this was instantly downvoted. Because these kinds of people don’t actually want Elon Musk out of their feeds, they just want to complain.

uranibaba, to news in Elon Musk May Have Just Signed X’s Death Warrant

Just figured out a way! Add this filter to uBlock Origin: lemmy.world##div.post-listing:has(span:has-text(“/elon musk/i”))

More on how to filter works: github.com/gorhill/…/Procedural-cosmetic-filters

ampache, to webdev
@ampache@fosstodon.org avatar

Album sorting is being put back into after i realised that it was hooking onto the first table due to the id's not having unique names.

YAY! a todo removed!

video/mp4

ibboard, to tumblr
@ibboard@hachyderm.io avatar

From : PSA: Tumblr Live Looks like this adblocking rule no longer works on Tumblr Live:
www.tumblr.com# > ul > li[title="Live"]
You now need:
www.tumblr.com#[data-cell-id^="timelineObject:live_marquee:"]
Which is very close to what worked in June and August. - https://ibboard.tumblr.com/post/730272135310901248/psa-tumblr-live

ButterflyOfFire, to random French
@ButterflyOfFire@mstdn.fr avatar

Archive 18 novembre 2022 via Presse Citron.

Titre de l’article :
> On a essayé Mastodon pendant deux semaines (on est heureux d’arrêter)

https://www.presse-citron.net/on-a-essaye-mastodon-pendant-deux-semaines-on-est-heureux-darreter/

ButterflyOfFire,
@ButterflyOfFire@mstdn.fr avatar

@shalien
Filtre :

www . presse-citron . net#.od-background.od-wrapper-both.od-wrapper

Johannab, to tumblr
@Johannab@wandering.shop avatar

What is honestly going on with “ live” now? I don’t use the app a lot, but every time I open it there is a scrolling bar of veeeery barely passing the rules cam-girl looking thumbnails. They literally look like all the same person, under every possible hashtag category like “music”, “entertainment”, “home and garden” etc.
If you’re gonna promo the porn sellers, just do it honestly and let me filter it out.

Can I turn that promo off entirely, somehow?

christianmlong,
@christianmlong@wandering.shop avatar

@Johannab I agree, so annoying! I've had success getting rid of it in the browser using these adblock rules.

||tumblr-live.com

www.tumblr.com##.ADlDx

www.tumblr.com#.KTRcB:nth-of-type(3)

ziviz, to main in Is there a way to block hexbear
@ziviz@lemmy.sdf.org avatar

If you are on browser using unlock origin, you can use custom cosmetic filters like sh.itjust.works##div.post-listing:has-text(/hexbear.net/). Not perfect and does not hide comments, but I’ve been happy enough with just this.

Rom, to asklemmy in Is it possible to block an entire instance?
@Rom@hexbear.net avatar

I mean you could try expanding your horizons a little bit and learning about other instances instead of being so scared of every opposing viewpoint on the internet. I promise you we aren’t anywhere near as bad as the libs across lemmy grumble about.

But like others have said there’s currently no built in lemmy way to do it. If you’re using uBlock Origin, you can go into the options (with the gears), go into the My filters tab, and add this line to the bottom:

lemm.ee##div.post-listing > div:nth-child(2) > article:nth-child(1) > div:nth-child(2) > div:nth-child(1) > div:nth-child(2) > div:nth-child(3) > a:nth-child(2) > span:has-text(@hexbear.net):upward(8)

It won’t exactly block it but it’ll filter out any Hexbear posts from your page when it loads so you don’t see them. You can replace the lemm.ee at the beginning with another instance and it should continue to work elsewhere, as long as there aren’t any major changes to the front end.

If you aren’t using uBlock then idk how you’re even getting through life.

lunareclipse, to random

Dzisiaj stwierdziłam że oferty sponsorowane na OLX są zbyt irytujące żeby je ignorować, głównie dlatego że ignorują zupełnie kryteria wyszukiwania (i.e. najniższa cena)

W taki oto sposób nauczyłam się trochę o proceduralnych filtrach w uBlock Origin ( https://old.reddit.com/r/uBlockOrigin/comments/97en64/block_elements_based_on_matches_in_subelements/e47zl1z/ )

I w jakieś 15 minut doszłam do tego oto filtru, który blokuje wszystkie oferty sponsorowane w wyszukiwarce OLX:

! Usuń sponosorowane oferty z OLX
olx.pl#?#div:has(> a > div > div > div > div > div > div > div:contains(Wyróżnione))

Jebać reklamy. ​:neofox_melt_happy:​

Lemmy world will be upgraded to 0.18.3 today (2023-07-30) at 20:00 UTC+2

We will upgrade lemmy.world to 0.18.3 today at 20:00 UTC+2 (Check what this isn in your timezone). Expect the site to be down for a few minutes. ““Edit”” I was warned it could be more than a few minutes. The database update might even take 30 minutes or longer....

Contravariant, to lemmyworld in Lemmy world will be upgraded to 0.18.3 today (2023-07-30) at 20:00 UTC+2

Fair. It’s not too hard, but most lemmy UIs make it a bit harder than it needs to be because they want to be a fancy JavaScript-ridden mess of html tags.

On old.lemmy.world it is supremely easy, you just use the element picker tool of uBlock to select all posts, add the ‘magic’ command :contains(reddit) to filter out the word you don’t want (in this case reddit), and you’ve got your filter. This would result in old.lemmy.world##.post:contains(reddit).

On lemmy.world it is trickier because it is the kind of HTML no sane person would write. Doing the above you end up with lemmy.world##div.mt-2.post-listing:contains(reddit) which is messy, and misses a line that is used to divide the posts. With some manual tuning you can first simplify the first part to ##.post-listing:contains(reddit) and then add :xpath(.|following::hr[1]) to get rid of the annoying line. This results in ##.post-listing:contains(reddit):xpath(.|following::hr[1]).

linuxFan, to youshouldknow in YSK how to block entire instances from your "all communities" feed and/or the "list of communities" page

If you want you can look through the html and select the exact element you want.

Right click on the channel name/link and select Inspect. This should open up the browser's dev mode and the element should already be highlighted. Right click it and select Copy > CSS Selector. You can paste that into the UBlock filter replacing post-listing.

The first element, div.post-listing:nth-child(17) is only going to check the nth(17th in this case) post on every page, so remove that nth-child() part. The rest of it should select the exact element you're looking for.

The upward(10) means instead of just hiding this element, go 10 levels up in the html document and hide that whole block.

So in my case, it looks like this:

vlemmy.net##div.post-listing > div:nth-child(2) > div:nth-child(1) > div:nth-child(3) > div:nth-child(1) > div:nth-child(1) > ul:nth-child(2) > li:nth-child(1) > span:nth-child(2) > a:nth-child(2) > span:nth-child(2):has-text(@lemmynsfw.com):upward(10)

You'll have to change the domain at the beginning to your instance.

image showing how to select html text for UBlock filter

gmmds, to random

Meanwhile at the TCEC, a championship is taking place between engines no bigger than 4KB (which is really tiny!) The top 2 are very strong - most likely above Magnus strength I imagine though with some "little" holes (4ku failed to mate with KQ vK!) If you want to see a good example of their level, then https://tcec-chess.com/#div=4kf&amp;game=10&amp;season=24 is pretty good! A pretty thematic Black win in the Frencvh Steinitz! Just the first 4 moves were given as book. The rest was 4K inspiration!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Leos
  • mdbf
  • Youngstown
  • ngwrru68w68
  • ethstaker
  • slotface
  • PowerRangers
  • hgfsjryuu7
  • khanakhh
  • kavyap
  • tsrsr
  • InstantRegret
  • DreamBathrooms
  • tacticalgear
  • normalnudes
  • magazineikmin
  • rosin
  • GTA5RPClips
  • thenastyranch
  • Durango
  • osvaldo12
  • vwfavf
  • cubers
  • everett
  • modclub
  • cisconetworking
  • tester
  • anitta
  • All magazines