开发者

Changing CSS before pageload with Greasemonkey

I need to hide an element on the page using greasemonkey before it loads (so that it's never visible).

At the moment I'm @requireing jQuery 1.3.2 which I'm reasonably familiar with, but I'm unsure how it interacts with greasemonkey so I don't know how to pull this off!

开发者_JS百科

Many thanks,

JP


Greasemonkey cannot do this for you, this is one of the scenarios where you should use a userstyle.

Many people who write userscripts also create a userstyle that can go along with the userscript, which will change CSS styles before the page loads, to improve the user experience. Usually they upload their userscript to userscripts.org and add a link in the description to the associated userstyle on userstyles.org.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜