|
Siamesecat's background filters
|
|
Jul. 25, 2004, 09:32 PM
Post: #16
|
|||
|
|||
|
Oddysey,
Quote: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.Perhaps I should clarify something here (no pun intended, really). Doc_psycho was trying to use my filters because he was trying to get rid of white backgrounds. Why would he want something that sets backgrounds to white? The code he posted was the code of a Mozilla bookmarklet which is accessible with a click of a bookmarks toolbar button. The problem with that is that one has to click it again after loading a new page. |
|||
|
Jul. 25, 2004, 10:10 PM
Post: #17
|
|||
|
|||
|
doc_psycho,
It just occurred to me why you want to add a colour-setting code on every page. I can be so absent-minded sometimes! I forgot that I also use a stylesheet with Firefox that changes the default background colour if nobody bothers to set one. I thought you might like a copy of the userContent stylesheet that I use. The purpose of all the code in it is explained by remarks. You can remove any that you don't want. Code: /* |
|||
|
Jul. 26, 2004, 05:29 AM
Post: #18
|
|||
|
|||
|
i woke up, feed the kids, hello
@siamesecat in fact i dont need that zap white background bookmarklet any longer your filter and using proxomitron is a lot more sophisticated but.... im already interested in the possibility to use any kind of javascript in a proxomitron filter there might be other intersting code i will find for example (im sure you now): Quote:j(function()%7Bvar%20newSS; i found your userContent stylesheet useful cosmetic apperance of my system its getting better and better so if you still will help... bye doc_psycho |
|||
|
Jul. 26, 2004, 07:01 AM
Post: #19
|
|||
|
|||
|
Siamesecat;
Yes, the good Doctor may be attempting to change background colors, but what I suggested was a one-stop shop for removing all clutter, not just background colors that don't please the viewer. This means that background images are also removed, and foreground text is set to black (highest contrast to the white). Two or three more points..... In fact, many browsers use a template of some sort as a starting point for displaying content. In my old copy of NN4.7, this template forced the background to light gray, if the body tag didn't specifically callout a particular color. This trick isn't used too much anymore, but it's worth knowing that it was once a common thing. The Clarifier is said to be IE only, because it inserts a button on the toolbar. Actually, it can be inserted onto the toolbar of any IE clone. I'm confident that as other browsers become more customizable, the author will ship versions of the Clarifier that will fit into them, too. And finally.... Sorry, but I didn't take the time to read every character of that code. It sure looked like gibberish to me, so I didn't divine just what it was supposed to accomplish. I'll certainly take your word for it that it was essentially the same thing as your color replacer. Apologies if my laziness caused any problems for anyone. Oddysey I'm no longer in the rat race - the rats won't have me! |
|||
|
Jul. 26, 2004, 07:19 AM
Post: #20
|
|||
|
|||
|
Doctor;
Quote:Even though you've said that you no longer need to do this with the color replacer, I thought I'd give you a couple of examples anyway on how to do inject a script into a webpage.Quote:longin for thatQuote:I want to insert this script on every page.This is easy to do In essense, you'll use the Proxo keyword <start>. This tells Proxo to do something at the very beginning of the webpage. After matching on this tag, you can insert code, or whatever you wish. (Do be careful, though.) Here's an example, taken from one of the default filters included with Proxo: Code: Name = "Suppress all JavaScript errors"If you are using the default Proxo config, and if you view the source code for an un-bypassed webpage, then you'll find this code at, or near, the top of the page. (That is, the code in the Replace string of the filter.) Other config sets do the same thing, with various scripts, variables, etc. Check out your current web filters, and see how many of them use the <start> tag - you might be surprised. The nominal filename is default.cfg, located in the same folder as Proxo's executable file. I hope this was as easy for you as it was for me to explain it. Ask if you need anything else.Oddysey I'm no longer in the rat race - the rats won't have me! |
|||
|
Jul. 26, 2004, 08:46 AM
Post: #21
|
|||
|
|||
|
doc_psycho and Oddysey,
I recognized the first bookmarklet because I have it, and had examined it before. It does not exactly do what my background filters do. It looks specifically for white backgrounds, but not extremely pale colours, as my filters do. After the white page loads, you click the bookmarklet and it changes the background to light tan. You have to repeat this with every white page. I don't believe the bookmarklet has any effect on background images. Doc, I did not recognize the second bookmarklet you posted. I don't have that one. |
|||
|
Jul. 27, 2004, 06:57 AM
Post: #22
|
|||
|
|||
|
siamesecat and oddysey
with your help im now right where i wanted to be siamesecat due to your advice and your background filters oddysey due to your hint in using a filter with your example im now able to use almost every javascript code whenever i need bye doc_psycho |
|||
|
« Next Oldest | Next Newest »
|

Search
Member List
Calendar
Help





![[-]](images/ONi/collapse.gif)
Ask if you need anything else.