SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Refreshing the script when necessary

    Hello,

    I've written a Greasemonkey script that adds two bits of text next to the "Select: All, None, Read, Unread, Starred, Unstarred" area in Gmail. It adds Conversations and Replies to that list, so that conversations can be selected, as well as messages prefixed with Re:

    The script is here and it works except that Gmail refreshes itself every so often and sometimes the links disappear.

    I'm at a loss how to make the script revive and re-apply itself when this happens. How could I do this?

  2. #2
    SitePoint Zealot logitron's Avatar
    Join Date
    Feb 2006
    Posts
    144
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    window.onload = _sc_aL
    I would think that by putting in this snippet of code at the end of the script instead of just "_sc_aL()", it should execute the function each time the window is reloaded (refreshed).
    Patrick Smith
    PHP Programmer

  3. #3
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I'm afraid it doesn't work. I thought it might be because it uses frames, so I did window.main.onload = _sc_aL(); (it seems the frame it's in is called main), but it still doesn't work. I'm stumped.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •