开发者

Changing CSS before pageload with Greasemonkey

开发者 https://www.devze.com 2022-12-29 11:53 出处:网络
I need to hide an element on the page using greasemonkey before it loads (so that it\'s never visible).

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

精彩评论

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