Avant Browser

Avant Browser community forum
It is currently Mon Jan 26, 2015 12:20 am

All times are UTC

Post new topic Reply to topic  [ 1 post ] 
Author Message
Poston: Tue Mar 16, 2010 6:54 pm 

Joined: Tue Mar 16, 2010 6:32 pm
Posts: 1
Windows Version: Windows 7
Avant Version: 11.7 b46
IE Version: 8
Hi, I've been using Avant Browser for years now, but there's a little thing that's irking me as of late. Sometimes in Gmail I get a message in which text was forced to black or another dark color, but since I'm using the Terminal theme it doesn't show on a black background, so I was wondering if it's possible to write a script that automatically forces this to the default text color.

Unfortunately, I know next to nothing about JavaScript, so I had to look up quite a lot. I've found this code snippet which may be useful, and I wrote what (I hope) will replace the color.
var x;
var col = getElementsByAttribute(color);
//removes the "#" and turns the value of col into an integer

for(x in col)
   if((col[x] <= 202020 && col[x] >= 202000) || (col[x] <=  200020 && col[x] >= 200000) || (col[x] <=  002020 && col[x] >= 002000) || (col[x] <= 000020 && col[x] >= 000000))

I'm absolutely not sure how correct this is, so I'm asking here to have someone look this over and correct me where possible.

Thanks in advance.

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Users browsing this forum: No registered users

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group