I’m trying to write a Greasemonkey script that works with Gmail. the script is working good but I need to add simulate a refresh of the Gmail page by “hitting” programmatically the Refresh button.
is this possible ?
FYI, the refresh link in Gmail isn’t a link like but rather : Refresh
I’ve tried to use the click() method but it doesn’t work …
Thank you for your help !
If you integrate jQuery into Greasemonkey, you could easily use the
.trigger('click')method, for a true dispatchEvent/fireEvent work-around.Alternatively, couldn’t you just set the window.location.href to http://mail.google.com/mail/#inbox?