opera.general
[Top] [All Lists]

Re: No bold in CSS style sheets

Subject: Re: No bold in CSS style sheets
From: "Jonathan A."
Date: Tue, 11 Oct 2005 16:26:23 GMT
Newsgroups: opera.general
On Tue, 11 Oct 2005 13:14:04 +0000 (UTC), Sheldon
<sisaac@xxxxxxxxx> appears to have said:

> "Jonathan A." <invalid@xxxxxxxxxxx> wrote:
>> Better, though, IMO is a bit of userjs:
>
> Thanks a lot. I know nothing at all about Javascript.
> Will you please tell how to modify your script (below) so that it also 
> works on font-style and text-decoration, as Rijk mentioned in his style 
> sheet

I somehow overlooked the fact that the OP had said italics and
underlines were a problem, too. Just add these two lines:

     font-style: normal !important; \
     text-decoration: none !important; \

So that "styles" becomes:

   var newSS, styles=' body, html, p, div, font, big, b, strong { \
     font-weight: normal !important; \
     font-style: normal !important; \
     text-decoration: none !important; \
   }';

I don't know much of javascript, myself. The script I posted is just a
modification of a "bookmarklet" that I found on the Web. You can insert
any style sheet into "styles=' ';" section, with a little practice. It's
a great way to make a site more readable, without destroying the layout
by going into user mode.

Just be aware that the javascript interpreter sees the "styles" variable
as one long line. The backslashes are used to "escape" the line breaks,
making it possible to split the line up for easier consumption by the
human eye, while the js interpreter ignores the breaks.

HTH,
Jonathan

-- 
Don't just hit reply. Email address is broken. Thank
your friendly neighborhood spammer. Email replies to:
user: daboid                      domain: cox<dot>net

<Prev in Thread] Current Thread [Next in Thread>