简体   繁体   中英

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

 $("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.

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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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