Re: [greasemonkey-dev] Is there any possibility to get the same result as "goDoCommand('cmd_selectAll');"

13 views
Skip to first unread message

Anthony Lieuallen

unread,
Jun 22, 2009, 9:47:31 AM6/22/09
to greasemo...@googlegroups.com, greasemon...@googlegroups.com
On 6/21/2009 5:25 PM, grex wrote:
> ... I've written a standard firefox plugin where I used the function
> "goDoCommand('cmd_selectAll');"

First: This question belongs on the -users list, not the -dev list. The
-dev list is for development of Greasemonkey itself, not for users of GM
(including those users who are writing scripts). I've cc:ed the -users
list, if you reply, please do so there.

Second: You have written an _extension_. A plugin is a different beast
altogether.

> ... but it seems that this is not allowed in greasemonkey. I'd like
> to translate my plugin to greasemonkey, but at this point I have no
> idea what to do.

Stop trying. Greasemonkey does not in any way attempt to solve this
problem. It is for scripting of content pages, and has very little to
do with extensions.

Given absolutely zero knowledge of what your extension does, I can't
offer any further advice. There are indeed some extensions which
concentrate on altering the content of a page, which is indeed what GM
is for, but this is certainly not the general case.

grex

unread,
Jun 22, 2009, 11:34:53 AM6/22/09
to greasemonkey-users
Thanks for redirecting... there is not much to say about the function
of my extension, it just marks all the content of the certain page,
copies it and sends to another server.
It's important to mark the visible text and not the html code, because
of the regex written on the receiving server. Should be a job for GM,
not for a standalone extension, but I haven't found anything to do
this in GM.

Anthony Lieuallen

unread,
Jun 23, 2009, 9:40:59 AM6/23/09
to greasemon...@googlegroups.com
On 6/22/2009 11:34 AM, grex wrote:
> ... all the content of the certain page, copies it and sends to
> another server. .. the visible text and not the html code..

Looks like you probably just want "document.body.textContent", and
"GM_xmlhttpRequest()".

grex

unread,
Jun 23, 2009, 6:17:03 PM6/23/09
to greasemonkey-users
wow, that's exactly what I was looking for. thanks a bunch!
Reply all
Reply to author
Forward
0 new messages