Post Reply 
Siamesecat's background filters
Jul. 22, 2004, 08:20 PM
Post: #1
 
I noticed that the posting of my background modification filters didn't survive the move to the new web site. They have also evolved since then.

Code:
[Patterns]
Name = "Background Image Killer [Siamesecat]"
Active = TRUE
URL = "(^$TYPE(css)) &(^[^.]+.imdb)"
Limit = 200
Match = "background=\w.(png|gif|jpg)"
Replace = "nobak"

Name = "Background Colour Replacer [Siamesecat]"
Active = TRUE
URL = "(^$TYPE(css))"
Limit = 50
Match = "bgcolor= ("|)(white|(#|) ([d-f][0-9a-f])([d-f][0-9a-f])([d-f][0-9a-f])|"
"rgb\([#210:255], [#210:255], [#210:255]\))("|)"
Replace = "bgcolor=#FFFF70"

Name = "Kill Background Images (Style) [Siamesecat]"
Active = TRUE
Multi = TRUE
URL = "(^christopherleeweb)"
Limit = 200
Match = "(background(-image|) (\t|) : (\t|) )*.(gif|jpg|png) \1"
Replace = "nobak \1"

Name = "Style Background Colour Replacer [Siamesecat]"
Active = TRUE
URL = "(^$TYPE(css))"
Limit = 50
Match = "(background(-color|) (\t|) : (\t|) )\0"
"((#|) ([d-f][0-9a-f])([d-f][0-9a-f])([d-f][0-9a-f])|"
"\wwhite\w|(#|) ([d-f][d-f][d-f])|"
"rgb\([#210:255], [#210:255], [#210:255]\)|"
"rgb\([#82:100]%, [#82:100]%, [#82:100]%\)) (;|)\3"
Replace = "\0#FFC0C0\3"

Name = "External Stylesheet Background Replacer [Siamesecat]"
Active = TRUE
URL = "$TYPE(css)"
Limit = 50
Match = "(background(-color|) (\t|) : (\t|) )\0"
"((#|) ([d-f][0-9a-f])([d-f][0-9a-f])([d-f][0-9a-f])|"
"\wwhite\w|(#|) ([d-f][d-f][d-f])|"
"rgb\([#210:255], [#210:255], [#210:255]\)|"
"rgb\([#82:100]%, [#82:100]%, [#82:100]%\))(;|)\3"
Replace = "\0lightblue\3"

These filters remove background images (many of which have a lot of white in them) and change the background colour of web pages if they are too light. I find white or nearly white backgrounds hard on my eyes. Just in case you are wondering why I have 2 stylesheet code modifiers, it is because I was curious to know what method was being used on different web pages to set the background. I got the bright idea of using colour coding. Also, it makes for more variations in background colours, and I like variety.
Some websites use background images in unusual ways, which is why I have to use exceptions occasionally. One website used them to display screen shots from movies, and another used them as place-holders to keep tables tidy.
Add Thank You Quote this message in a reply
Jul. 23, 2004, 01:12 AM
Post: #2
 
Siamesecat;

Nice mods. Be sure to have Kye-U put them into the database for downloading. I think you'll recall that this particular pair of filters were what turned on two of my elderly friends to so much more Internet browsing. (However, their wives are still cursing my name. Sad )


Oddysey

I'm no longer in the rat race - the rats won't have me!
Add Thank You Quote this message in a reply
Jul. 23, 2004, 09:04 AM
Post: #3
 
Quote: Be sure to have Kye-U put them into the database for downloading.
How do I do that? Is there some special method for uploading?
Add Thank You Quote this message in a reply
Jul. 23, 2004, 01:25 PM
Post: #4
 
Siamesecat;
Quote:How do I do that?
Easy, watch this. Wink

<span style='color:red'>Oh Kye-U.... we have a request for you. Could you please put this filter into the d/l database?</span>

Now see what comes next. Voila! Like magic, only better, no? <_< [lol] No special method for uploading.... at least, not one that I know of. Just a courteous request, that's all I've ever used. Smile!


Oddysey

I'm no longer in the rat race - the rats won't have me!
Add Thank You Quote this message in a reply
Jul. 23, 2004, 01:36 PM
Post: #5
 
Siamesecat;

When I went to integrate your filter(s) into my config this morning, I noticed this little anomoly, highlighted in red:
Quote:Name = "Kill Background Images (Style) [Siamesecat]"
Active = TRUE
Multi = TRUE
<span style='color:red'>URL = "(^christopherleeweb)"</span>
Limit = 200
Match = "(background(-image|) (\t|) : (\t|) )*.(gif|jpg|png) \1"
Replace = "nobak \1"
You reallly didn't want us to exclude this particular alias from our viewing pleasure, did you? Big Teeth


Oddysey

I'm no longer in the rat race - the rats won't have me!
Add Thank You Quote this message in a reply
Jul. 23, 2004, 08:31 PM
Post: #6
 
*Deep voice* You rang?

Anyways, I'm looking for a good knowledge base PHP script. PM me of any good ones you know Smile!

The paFAQ seems to be malfunctioning. [angry]
Visit this user's website
Add Thank You Quote this message in a reply
Jul. 24, 2004, 06:17 AM
Post: #7
 
Quote:URL = "(^christopherleeweb)"
You reallly didn't want us to exclude this particular alias from our viewing pleasure, did you?
That is one of the websites that use background images in unusual ways. This one used them (tiny ones) as place-holders to keep tables tidy.
However, I should have used the syntax:

URL = "(^[^.]+.christopherleeweb)"

I think they recently added a prefix in front of their hostname.
Add Thank You Quote this message in a reply
Jul. 24, 2004, 10:09 AM
Post: #8
 
@siamesecat

i found your background filters very useful, thank you

is there a way to make them work for a site like
http://www.google.de
or
http://www.web.de ?

a jsvascript in an bookmarklet is workin
but i dont want to push button anytime
this is the java
j(function(){function getRGBColor(node,prop){var rgb=getComputedStyle(node,null).getPropertyValue(prop);var r,g,b;if(/rgb\((\d+),\s(\d+),\s(\d+)\)/.exec(rgb)){r=parseInt(RegExp.$1,10);g=parseInt(RegExp.$2,10);b=parseInt(RegExp.$3,10);return[r/255,g/255,b/255];}return rgb;} R(document.documentElement); function R(n){var i,x,color;if(n.nodeType==Node.ELEMENT_NODE && n.tagName.toLowerCase()!=%22input%22 && n.tagName.toLowerCase()!=%22select%22 && n.tagName.toLowerCase!=%22textarea%22){for(i=0;x=n.childNodes[i];++i)R(x); color=getRGBColor(n,%22background-color%22);if(typeof(color)!=%22string%22){if (color[0] + color[1] + color[2] >= 2.8) { n.style.backgroundColor = %22tan%22;/*Moz 1.0*/ n.style.setProperty(%22background-color%22, %22tan%22, %22important%22);/*Moz 1.4 after zap colors*/ } }}}})()


would be glad for any help or hint
by anyone

doc_psycho
Add Thank You Quote this message in a reply
Jul. 24, 2004, 11:54 PM
Post: #9
 
Quote:is there a way to make them work for a site like
http://www.google.de
or
http://www.web.de ?
I tried http://www.google.de. It seems just like any other Google page to me. My background filter turns most of the page yellow. I saw the same effect on http://www.web.de. Didn't it do that for you?
Add Thank You Quote this message in a reply
Jul. 25, 2004, 06:37 AM
Post: #10
 
unfortunately no
this is proxo log for a call of google.de:
__________________________________________
New Message Log Window....
RESP 2468 : Proxies off!
BlockList 2468: in IncludeExclude, line 47
RESP 2468 : Keyword (!||||||||||||-List): .prefix.
BlockList 2468: in SpecialUAs, line 58

+++GET 2468+++
GET / HTTP/1.1
Host: http://www.google.de
User-Agent: Mozilla/5.0 (Windows NT 5.0; U; rv:1.7) Gecko/20040707 Firefox/0.9.2
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Cookie: PREF=ID=54f9ab6d791ccfeb:LR=lang_de:LD=de:NR=10:TM=1089867905:LM=1089971242Confused=9911uBNVH0CIgf51
Connection: keep-alive
Referer: http://www.google.com/search?hl=en&ie=UTF-...TF-8&q=Big+Bang
RESP 2468 : HDR_In Cache-Control killed: private

+++RESP 2468+++
HTTP/1.1 200 OK
Content-Type: text/html
Content-Encoding: gzip
Server: GWS/2.1
Content-Length: 1211
Date: Sun, 25 Jul 2004 06:31:19 GMT
Match 2468: Top All Mark: Start 3.12.08 (multi) [s] (d.r)
Match 2468: Top All Mark: End 3.12.08 [s] (d.r)
Match 2468: Top JS Mark: Start 3.12.08 (multi) [s] (d.r)
Match 2468: Top JS: Mark End 3.12.08 [s] (d.r)
Match 2468: Top HTML Mark: Start 3.12.08 (multi) [s] (d.r)
Match 2468: Top HTML Mark: End 3.12.08 [s] (d.r)
Match 2468: Proxomitron Indicator 1 (small graphic)
Match 2468: Header Top Mark: Start - Fix <head> 4.01.12 (multi) [s] (d.r)
Match 2468: Header Top Add: Saved from URL 3.12.08 [jor] (d.0)
Match 2468: Header Top Add: Inline Script Type 3.12.08 [s] (d.r)
Match 2468: Header Top Add: Various JS Code 3.12.15 (cc!) [...] (d.r)
Match 2468: Header Top Inject: JS Functions 3.12.08 [...] (d.r)
Match 2468: Header Top Mark: End 3.12.15 (multi) [s] (d.r)
Match 2468: <title>: Add Time - Fix Tag - Snip Excess 3.12.08 (always) [jd s] (d.1)
Match 2468: Header Bot Mark: Start - Fix </head> 3.12.15 (multi) [s] (d.r)
Match 2468: Header Bot Add: Navigation Links 3.12.15 (moz opera) [s] (d.1)
Match 2468: Header Bot Add: Various JS Code 3.12.08 (cc!) [s] (d.r)
Match 2468: Header Bot Mark: End 3.12.08 [s] (d.r)
Match 2468: Proxomitron Indicator 2 (small graphic)
Match 2468: <body> Mark: Start 4.01.02 (multi) [s] (d.r)
Match 2468: <a><body>: JS Properties 4.01.22 (multi) [s] (d.1)
Match 2468: Background Colour Replacer [Siamesecat]
Match 2468: <a><body>: JS Properties 4.01.22 (multi) [s] (d.1)
Match 2468: <a><body>: JS Properties 4.01.22 (multi) [s] (d.1)
Match 2468: <a><body>: JS Properties 4.01.22 (multi) [s] (d.1)
Match 2468: <a><body>: JS Properties 4.01.22 (multi) [s] (d.1)
Match 2468: <html><body>: Remove Dupes 4.03.30 (multi) [s] (d.r)
Match 2468: Bottom Mark: Start - Close open Tags 3.12.08 (multi) [s] (d.r)
Match 2468: <html><body>: Remove Dupes 4.03.30 (multi) [s] (d.r)
Match 2468: Bottom Mark: Start - Close open Tags 3.12.08 (multi) [s] (d.r)
Match 2468: Bottom Mark: Start - Close open Tags 3.12.08 (multi) [s] (d.r)
Match 2468: Bottom Add: Print Cookies 3.12.08 [henk th s] (d.2)
Match 2468: Bottom Add: Print collected Stuff 4.01.16 [s] (d.r)
Match 2468: Bottom Add: Various JS Code deferred 3.12.08 (cc!) [...] (d.r)
Match 2468: Bottom Mark: End 3.12.08 [s] (d.r)
Match 2468: <html><body>: Remove Dupes 4.03.30 (multi) [s] (d.r)
Match 2468: <html><body>: Remove Dupes 4.03.30 (multi) [s] (d.r)
<end> 2468: Allow right mouse click [EAH]
+++CLOSE 2468+++
____________________________________________________________________

can you see something disturbing in it?
i use firefox 0.9.2

thanx in advance

oh, and nevertheless
is there a way to let javascript, as for example provider in my thread
be guilty f?r a call of a site by using a proxomitron filter?
Add Thank You Quote this message in a reply
Jul. 25, 2004, 07:26 AM
Post: #11
 
That is a lot of filters to be called for a simple page like Google. When I go to the same page, I have three filters matching.
The bgcolor command on that page is next to the <body> tag. There were a lot of tags with "<body>" in them, in your list. What do those do? Perhaps they undo what my filter does?
Quote: oh, and nevertheless
is there a way to let javascript, as for example provider in my thread
be guilty f?r a call of a site by using a proxomitron filter?
I am not sure what your question means. If you mean, is it possible for some other computer to trigger the use of a proxomitron filter by remote control from the internet, no. You should have Prox configured in Configure - Access tab to "Limit access to only this PC". That is the default setting. That would prevent such an occurrence.

Incidentally, there is an extension for Firefox which is supposed to prevent the disabling of the right mouse click. It is called "Allow Right Click". I noticed that one of your matching filters is for allowing the right mouse click.
Add Thank You Quote this message in a reply
Jul. 25, 2004, 09:43 AM
Post: #12
 
allright
that lead me to the right direction
i deleted a few filters, allow right mousec., because i was already
using that firefox extension

before i intended to throw out al filters with boy in it
i eliminated proxomitron indicator

boom

yellow background whereever i go
now im happy with your bachground filters

and the other thing
i explained it in a bad manner because of my lack in english

i want a filter which injects any
javascript

matching every url
and replacement text like:
_________________________________
j(function(){function getRGBColor(node,prop){var rgb=getComputedStyle(node,null).getPropertyValue(prop);var r,g,b;if(/rgb\((\d+),\s(\d+),\s(\d+)\)/.exec(rgb)){r=parseInt(RegExp.$1,10);g=parseInt(RegExp.$2,10);b=parseInt(RegExp.$3,10);return[r/255,g/255,b/255];}return rgb;} R(document.documentElement); function R(n){var i,x,color;if(n.nodeType==Node.ELEMENT_NODE && n.tagName.toLowerCase()!=%22input%22 && n.tagName.toLowerCase()!=%22select%22 && n.tagName.toLowerCase!=%22textarea%22){for(i=0;x=n.childNodes[i];++i)R(x); color=getRGBColor(n,%22background-color%22);if(typeof(color)!=%22string%22){if (color[0] + color[1] + color[2] >= 2.8) { n.style.backgroundColor = %22tan%22;/*Moz 1.0*/ n.style.setProperty(%22background-color%22, %22tan%22, %22important%22);/*Moz 1.4 after zap colors*/ } }}}})()
________________________________

as a newbie i dont know wether it is possible for proxomitron


thanx
doc_psycho
Add Thank You Quote this message in a reply
Jul. 25, 2004, 05:11 PM
Post: #13
 
Doctor Psycho;

In the future, could you please re-format your javascript code (or any other code such as HTML, CSS, etc.) and submit it using the "quote" or "code" tags? The way your script code reads now is too hard on the eyes to expect a volunteer to spend time on it.

And as far as I'm concerned, your English is fine. I suspect that our difficulties lay in understanding the intent of your request. Please confirm this re-statement of your question (or correct me if I'm wrong): You wish to have the Proxomitron inject a javascript function into each and every page, or at least, every page found at "www.google.de", is that correct? This is easy to do, but we want to hear your answer before we show you how it's done (no sense in wasting time and thread space on something that you didn't ask for).

As an alternative, if you are using IE 5.0 or above, I might suggest that you check out The Clarifier. It merely removes all background clutter, and sets all background colors to white. Not as fancy as Siamesecat's filter, but it works every time, with only a click of the toolbar button. Just a thought.


Oddysey

I'm no longer in the rat race - the rats won't have me!
Add Thank You Quote this message in a reply
Jul. 25, 2004, 07:12 PM
Post: #14
 
Quote:In the future, could you please re-format your javascript code (or any other code such as HTML, CSS, etc.) and submit it using the "quote" or "code" tags?&nbsp;


i surely will pay attention to it

Quote:You wish to have the Proxomitron inject a javascript function into each and every page, or at least, every page found at "www.google.de", is that correct?&nbsp;


into each and every page

Quote:This is easy to do


longin for that Hail

Quote:As an alternative, if you are using IE 5.0 or above


in the last three days i spend hours with substituting
ie with firefox, im so happy with it


thanx a lot for our help
doc_psycho
Add Thank You Quote this message in a reply
Jul. 25, 2004, 09:20 PM
Post: #15
 
doc_psycho,
I recognize the code you posted. It is the "zap white backgrounds" bookmarklet from one of the Mozilla pages. I have it as well. With my background filters (including the background image removers), you won't need it for every page. I suggest that you leave it as a bookmarklet for those (hopefully rare) occasions when a white page slips past one of my filters. I put that bookmarklet on my Bookmarks toolbar, where it is easily accessible to click whenever I need it.
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: