On 2014-12-04 23:54, 'Dave Land' via greasemonkey-users wrote:
On Dec 3, 2014, at 9:18 PM, GmUser <[email protected] <mailto:[email protected]>> wrote:

Is there ANY WAY to load a javascript library using Greasemonkey and have the functions executable by a bookmarklet?
You can load the script in the page context to give bookmarklets access, e.g.

// @include     http://*
// @include     https://*

(function () {
    j = document.createElement("SCRIPT");
    j.src = "//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js";
    document.getElementsByTagName("HEAD")[0].appendChild(j);
})();

--
Klaus Johannes Rusch
[email protected]
http://klausrusch.atmedia.net/

--
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to