470,630 Members | 1,810 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,630 developers. It's quick & easy.

javascript in browser

Hi,
Does anyone know if its possible to tweak a browser (i.e firefox) on
how it handles javascript. example:

a java script turns something red (lets say the scroll bar) - feeds it
to the browser - but the browser has been modify to execute a "red"
attribute as blue - thus even when the script says to turn it red, it
still outputs as blue!

Thanks in advance.

al ;)

Jul 23 '05 #1
2 1190
In article <11*********************@g47g2000cwa.googlegroups. com>,
si*******@gmail.com enlightened us with...
Hi,
Does anyone know if its possible to tweak a browser (i.e firefox) on
how it handles javascript. example:

a java script turns something red (lets say the scroll bar) - feeds it
to the browser - but the browser has been modify to execute a "red"
attribute as blue - thus even when the script says to turn it red, it
still outputs as blue!


If I understand you correctly, you want to disable custom stylesheets?
I believe such modifications are specifically meant to NOT be able to be
overridden. For example, for red-green colorblind people.

If you meant you want to create a rule where red is rendered as blue, use
custom stylesheets. :)

--
--
~kaeli~
A boiled egg in the morning is hard to beat.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #2
Alex Lee wrote:
a java script turns something red (lets say the scroll bar) - feeds it
to the browser - but the browser has been modify to execute a "red"
attribute as blue - thus even when the script says to turn it red, it
still outputs as blue!


Note that whether assigning a value to a scripted CSS property of an
element works as described depends on the specificity of selectors of
the style sheets that are already there (therefore `_Cascading_ Style
Sheets'). This includes, but is not limited to, user stylesheets
making use of `!important' declarations.

<http://www.w3.org/TR/CSS21/cascade.html>
PointedEars

P.S.
There is an additional space in your name that you may
want to remove to not be subject to some real name filters.
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.