简体   繁体   English

外部javascript的滑脂? (使用jQuery)

[英]external javascript for greasemonkey? (using jquery)

I have a simple user script for greasemonkey and it works great. 我有一个简单的润滑脂用户脚本,效果很好。 Now I want to exclude the script and 现在我要排除脚本和

 $.getScript("http://www.my-domain.de/my-script.js");

doesn't work. 不起作用。

my-script.js is only my-script.js

 $("input:text").css("background","tan");

I'm still not finding you question very clear since why would you use getSricpt if you wanted to exclude a script. 我仍然没有发现您的问题很明确,因为如果要排除脚本,为什么要使用getSricpt

Maybe I'm not getting the question at all, but, if you want to exclude a script in greasemonkey you can do so: 也许我根本没有问题,但是,如果您想在油脂猴子中排除脚本,可以这样做:

// @exclude http://www.my-domain.de/my-script.js

Se a brief explanation here (Beware because I think this tutorial is/might outdated in some parts). 在这里进行简要说明(请注意,因为我认为本教程在某些地方可能已经过时)。

Is this what you were looking for? 这是您要找的东西吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM