[Release] Stylem

General discussion, compatibility and contributed extensions.

Moderators: satrow, FranklinDM, Lootyhoof

User avatar
adesh
Keeps coming back
Keeps coming back
Posts: 774
Joined: 2017-06-06, 07:38

Re: [Release] Stylem

Post by adesh » 2019-12-04, 12:04

You don't need "http" bit in domain.

User avatar
lunario
Moongazer
Moongazer
Posts: 7
Joined: 2019-12-01, 20:25

Re: [Release] Stylem

Post by lunario » 2019-12-04, 16:31

Thank you, but even without that bit it won't work

coffeebreak
Board Warrior
Board Warrior
Posts: 1955
Joined: 2015-09-26, 04:51
Location: U.S.

Re: [Release] Stylem

Post by coffeebreak » 2019-12-04, 21:48

lunario wrote:
2019-12-04, 10:26
the goal being to have grayscale on all sites except openstreetmap as it breaks the layout
I don't know regex and couldn't figure out how to remove "http" entirely, but changing the http in your expression to https seems to do what you want.
(openstreetmap.org appears to use https exclusively with no fallback to http.)

Code: Select all

@-moz-document regexp('(?!https://www\\.openstreetmap\\.org).*') {
html {
  filter: grayscale(100%);
}
}
This worked also:

Code: Select all

@-moz-document regexp('(?!(http|https)://www\\.openstreetmap\\.org).*') {
html {
  filter: grayscale(100%);
}
}

User avatar
lunario
Moongazer
Moongazer
Posts: 7
Joined: 2019-12-01, 20:25

Re: [Release] Stylem

Post by lunario » 2019-12-05, 08:41

Thanks a lot!

Post Reply