Yumm.... thanks! This looks 99.9% to me like it might be the long since missed
magic function "gBrowser" from Firefox addons?! It gets the current page! Needed e.g. for creating long page screenshots, or adblock-addon configuration buttons as in Firefox, for
uBlock button etc....
jsb.RegisterCmd(CmdName, 'Tiny URL', function(wind, mode, arg) {
var url =
jsb.GetActiveBrowser().contentDOMWindow.document.location.href;
And this looks very interesting function too:
ReadDataFromWeb(TinyUrlService+url, 10000, function(isOK, resp) {
Aargh, all the great new prospects, but can't try it myself, stuck with too old KM-version, and currently no time for playing with addons anyway
(NB: screenshots might be helpful, they can be attached directly to posts too... and a link to forum post inside xpi?)