How to edit an installed theme to apply to only one domain? #1993
-
Firefox user. I've installed "black chat gmail" via Stylus and noticed it seems active on every website beyond only Gmail (regarding as unnecessary, I'd prefer to restrict it to display and activate exclusively within Gmail). The theme appears to be in a "global" category, but I'm not sure how to change that to one domain (mail.google.com) and function properly. I noticed other Gmail themes also personally installed have the domain line and thus are only displayed and active when viewing the Gmail site. Below is the full stylesheet code of the theme in question, followed by an edit I've attempted (simply including the domain code before the section that modify the webpage elements). However, my edit essentially rendered the theme as though disabled, so I'm not sure what's wrong and would like assistance, please.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Syntactically your edit is correct as the style is actually applied to the correct domain where it is active. The problem is that those definitions of colors in your code aren't used by the actual site because it either redefines them downstream or just doesn't use any variables at all and defines the colors directly. There are two solutions: either recolor all elements en masse using |
Beta Was this translation helpful? Give feedback.
According to #1994 you need to use
chat.google.com
instead ofmail.google.com
because the chat is inside an iframe, which is what I suggested initially.