baik
baik

Reputation: 1013

Google mail insert into text window chrome-extension

Has anybody heard of a way to insert text into the message text window of Google Mail (when writing a new email) by using a Chrome extension?

I thought about inserting HTML via the extension into the class or id field of the message window (if there is any).

Upvotes: 1

Views: 469

Answers (1)

flienteen
flienteen

Reputation: 234

With JQuery you can do it like this

function addText(myText)
{
    $content=$('#canvas_frame').contents().find('body div table form iframe').contents().find('body');
    $content.html($content.html()+ myText);
}

Upvotes: 1

Related Questions