Black background and white text for all webpages

mysteriously

Beta Tester & Translator
buuuuuuu190's custom filters help

Hello

If the rule
Code:
google.pl#$#body { background-color: #000000!important; }
works for google.pl then why
Code:
*.*#$#body { background-color: #000000!important; }
doesn't work at all? Is it possible to make black background and white text for all webpages?
 
Last edited by a moderator:

avatar

Administrator
Staff member
Administrator
You should specify valid domain names or do not specify them at all if you want the rule to work everywhere.

This rule is for all websites:
Code:
#$#body { background-color: #000000!important; }
 

mysteriously

Beta Tester & Translator
Ah ok. What about rule for text color white? Which one is the most universal: color, text color or something else?
Yes, I know it all depends of site construction
 

mysteriously

Beta Tester & Translator
1)
<div
id="mess001" class="mChatBG2 mChatHover">
<div id="mess002" class="mChatBG2 mChatHover">
How to apply
{ background-image: background-color: #000000!important; color: #FFFFFF!important; }
if div id is variable?

I know it's not the most handy way to change website look. I'm learning some HTML, CSS is next step in course. BTW: The site I'm modifying is build by tables, it's nightmare ;)

2) I visit site forums.example.com. It has .gif images build in on website. Without them site is broken. Forum users often posts .gif from many external sites like abc.com, def.com etc. I don't want to see those.

Is it possible to create rule which would:
* work only if I'm on website forums.example.com
* block all .gif posted on forums.example.com which source don't match forums.example.com?
 
Last edited by a moderator:

avatar

Administrator
Staff member
Administrator
1) You can try something like this:

Code:
#$#div[id*="mess"] { background-image: background-color: #000000!important; color: #FFFFFF!important; }
2) Add two rules:

Code:
.gif$domain=forums.example.com
@@||forums.example.com/*.gif
First will block all "gif" requests originated from forums.example.com
Second will unblock all gifs hosted on forums.example.com
 

mysteriously

Beta Tester & Translator
Wow, you're genius :) I've made a mistake with 'background-image' in 1) so this works:
Code:
#$#div[id*="mess"] { background-color: #000000!important; color: #FFFFFF!important; }
2) works too

Thank you!
 
Last edited by a moderator:

mysteriously

Beta Tester & Translator
Code:
.gif$domain=forums.example.com
@@||forums.example.com/*.gif
First will block all "gif" requests originated from forums.example.com
Second will unblock all gifs hosted on forums.example.com
This does not work like it used to do in v5. Gifs from the example domain are blocked. Also forum is example.com/forum.
 
Last edited by a moderator:
Top