[Greasemonkey] "Bloglines Keep All New Link" User script
Jeremy Dunck
jdunck at gmail.com
Wed Jun 8 11:30:16 EDT 2005
On 6/8/05, Nicola Paolucci <durden at gmail.com> wrote:
> On 6/3/05, Mark Wubben <markwubben at gmail.com> wrote:
> > Why do you need to "embed" the JavaScript code?
>
> I had tried without embedding the Javascript code into the page but
> then those functions would not be found when clicking the 'keep all
> new' link. Probably some simple thing I was missing.
You have to "export" any GM functions you want to be available outside
the script itself.
For those functions, do:
window.foo = function() {
}
instead of :
function foo() {
}
More information about the Greasemonkey
mailing list