Click to See Complete Forum and Search --> : Anyway to use javascript with a bookmark to change the look of...


Conor
06-08-2004, 09:21 PM
a page im viewing, there are some websites I enjoy viewing put the text is annoying

In PHP I could do something like this:

strReplace("<span style=\"font-weight:bold;\"><span style=\"color: red;\"><span style=\"background-color: white;\">", "<span style=\"font-weight:normal;\"><span style=\"color:black;\"><span style=\"background-color: #C1C2C9;\">", $html_source_of_this_page); but I wouldnt know how to interact with a page Im viewing

edit: did it with css

span[style="font-weight:bold;"] span[style="color: red;"] span[style="background-color: white;"] {
font-weight: normal !important;
color: black !important;
background-color: #C1C2C9 !important;
}