如何用Greasemonkey修改或覆盖站点的jQuery代码。 jQuery库已由站点加载,jQuery自定义代码是我想要更改/修改的。我如何用Greasemonkey覆盖它?用Greasemonkey修改站点的jQuery代码
比如我想重写此代码(通过网站书面):
$('.side-nav-flyout').hover(function() {
$(this).children('ul').fadeIn();
}, function() {
$(this).children('ul').fadeOut();
});
有了这个(我重写):
$('.side-nav-flyout').hover(function() {
$(this).children('ul').show();
}, function() {
$(this).children('ul').hide();
});
具体在哪里你把重写代码的userscript,并将其包装在document.ready中?
我想这是题外话。你在问如何使用浏览器插件,而不是你需要执行你正在寻找的特定操作的jQuery。 – Will 2011-01-20 18:09:23
这是关于jQuery和greasemonkey相关的,那是不是主题? – 2011-01-20 18:47:12