Vompaudi, on 18 December 2012 - 11:01 AM, said:
Hyperlinks are added in HTML document. CSS are only for decorating.
Even though those are their intended roles, it's not entirely accurate. There is always some crossover between the three areas of web development. HTML can include some styling and behavior, while CSS is capable in limited ways to manipulate the content and behavior. Javascript is more than capable of dealing with all three roles, by manipulating both the HTML and CSS.
Your example is right though. CSS isn't capable of adding links. It can make things look like links, but not actually behave as such.
If you are interested in redefining the look and, more importantly, the behavior of websites in Firefox, then you may want to consider the Gresemonkey extension instead of your style manager extension. With Greasemonkey you can write Javascript snippets (generally called Userscripts) to run on select websites, which allows you to manipulate it in any way you see fit. Adding a button would be a trivial task using a Userscript.

New Topic/Question
Reply




MultiQuote



|