this post was submitted on 28 Jun 2023
29 points (100.0% liked)

Lemmy.World Announcements

28381 readers
1 users here now

This Community is intended for posts about the Lemmy.world server by the admins.

Follow us for server news ๐Ÿ˜

Outages ๐Ÿ”ฅ

https://status.lemmy.world

For support with issues at Lemmy.world, go to the Lemmy.world Support community.

Support e-mail

Any support requests are best sent to [email protected] e-mail.

Report contact

Donations ๐Ÿ’—

If you would like to make a donation to support the cost of running this platform, please do so at the following donation URLs.

If you can, please use / switch to Ko-Fi, it has the lowest fees for us

Ko-Fi (Donate)

Bunq (Donate)

Open Collective backers and sponsors

Patreon

Join the team

founded 1 year ago
MODERATORS
 

We've upgraded the instance to 0.18.1-rc.1

(to be completed)

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 2 points 1 year ago (2 children)

I don't think it's possible. It would require some privileged @media query or something similar. Or, potentially using media query to match a feature that isn't available on private-browsing mode. There could be something like that, but I don't know one.

[โ€“] [email protected] 1 points 1 year ago (1 children)

thanks for the answer! I'd like to disable it because if sometimes some website interface fucks things up, I can check if it's my fault or not, so visiting the site in private mode without my css would quickly show me who's fault

[โ€“] [email protected] 5 points 1 year ago (1 children)

Hmm. I don't have a good solution for that. It would be trivial using an extension like Stylus though, just don't allow it to run in PB mode.

I suppose you could do all your @-moz-document matching with regexp and then using a bookmarklet to add some "mark" to the document url. Then you wouldn't need to use PB-mode at all.

So, a bookmarklet like this, when clicked, adds/removes a#pbm suffix to the current tab and loads that address to a new tab:

javascript:((loc)=>window.open(loc.endsWith("#pbm")?loc.slice(0,-4):loc+"#pbm"))(document.location.href)

Then in you userContent.css you would write your document matching like this (example is for en.wikipedia.org):

@-moz-document regexp(".*en\.wikipedia\.org.*(?<!#pbm)$"){
  body{ color: red !important; }
}

That should work but honestly if you need this then I would rather just use extension like Stylus or open those links in separate profiles even.

[โ€“] [email protected] 1 points 1 year ago

Well, it's gonna cause a few more unfortunately, I think, because there are definitely some bugs in 0.18.1-rc.1

load more comments (-1 replies)
load more comments (-1 replies)