[Greasemonkey] Suggestion: GM_injectCSS

Simon Willison cs1spw at bath.ac.uk
Thu Apr 14 16:06:51 EDT 2005


On 14 Apr 2005, at 14:45, Jeremy Dunck wrote:

> On 4/14/05, Simon Willison <cs1spw at bath.ac.uk> wrote:
>> Since this is such a common pattern, it might be worth adding it as 
>> one
>> of Greasemonkey's built in GM_ family of functions. I suggest
>> GM_injectCSS.
>
> In CSS, order is important.  Would this function add the CSS to the
> end of the declarations (new style elem), or something else?

I'd say add them in a new style element and make sure that the 
documentation reflects this, so user script authors know that they have 
to take that in to account.



More information about the Greasemonkey mailing list