Is it possible to modify the HTML when writing an email in Gmail?

Asked

Viewed 905 times

5

The intention is very simple, I want to make a <strike> (strikethrough) in the text of the email, p.ex.: tacked.

I found the library Kartiktalwar/gmail.js: Gmail Javascript API, but it requires tremendous twists and the creation of a Chrome extension to do something similar.

Sometimes I use JS snippets in Developer Tools to manipulate the GIFT of the pages, but I doubt that is the way:

imagem do snippets no Dev Tools

Some alternative?

  • 2

    Testing on-topic limits? P

  • @bfav, ferpectamente, virtually a [webapps.se], my hope were these question links, which are programmer in the vein.

1 answer

5

You can directly use the Developer Tools DOM manipulation that the browser (browser) offers. It is not straightforward or beautiful like creating an extra button for formatting, but for an HTML programmer it is very simple:

Right-click on the text you want to modify and ask Inspect Elemento(Inspect Element). Now, locate the correct code block in Dev Tools and right-click again Edit as HTML(Edit as HTML):

edit as html

Once inside the HTML editing, modify the code to <strike>SEU TEXTO</strike> and...
All right, Osvaldo!

webmail com strike

PS: also serves for other HTML tags, such as <hr>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.