Now I was curious if the script would also work for more AJAX-ish sites such as Gmail or others. It does not, probably because Gmail runs so many asynchronous things in so many frames that somehow the e-mail content is not yet there when the script executes. When I switch the script to display a context menu and I select it from there, it perfectly highlights my quoted e-mails on Gmail too, though. So this is a timing problem. I am a Java back-end guy, not a JS front-end type. I have no clue how to solve this. OTOH, I rarely use Gmail. So it would be okay if the script ran automatically for my own provider but on demand on Gmail. Is there a way to enable both in parallel, i.e. have the script run automatically but also additionally to display it in the context menu? Then I could at least make it run on other sites, too. BTW, no, I do not want to copy the script and have to maintain two versions of it for different sites.
http://tampermonkey.net/documentation.p ... enuCommand
- the automatic script should only run on a few sites, but
- the menu entry should be available on every site (just in case).
BTW, inline code formatting, i.e. fixed width font (not the BBCode "code" tag creating a new paragraph), would be nice to have here. Is it possible? The syntax help does not mention it.