/* Dynamic Comments... */

Tuesday, June 07, 2005

Gmail Smart-Delete Button Ver. 0.3.6 Released!

While researching reports of Gmail Locking accounts I noticed one cause seemed to be a timing issue with Gmail's auto-refreshing behavior.
[Show Full Post...]

[Show Summary Only...]

Apparently, Gmail does not play nice with timers in scripts, and so, after much experimentation, I have managed to do away with GSDB's main timer. I had been relying on it to recreate the button instance and enable/disable it when a checkbox was clicked. I needed this as Gmail's own client-side javascript code performs certain actions without generating any events! This meant I needed to revalidate at regular intervals.

Version 0.3.6 now manages to circumvent the need for a timer while still responding quickly to user actions. This should finally spell an end to the dreaded Lockdown in Sector 4!

Download version 0.3.6 here: Gmail Smart-Delete Button
[To install, right-click the above link & choose 'Install User Script...' from context menu.]



PS: I've removed the requirement to register before leaving a comment. So there's no excuse for not commenting. Let me know whose using the GSDB out there! I'll try to implement any useful (and reasonable) suggestions you come up with.


Related Tags:
/ / / / / /

11 Comments:

Anonymous Anonymous said...

Great. It works

5:12 AM, June 08, 2005  
Blogger Robbie Coleman said...

Thank you for not only posting a response to the lockdown (I wasn't sure which user script was causing it), but also resolving it so quickly.

You shall now be known as:
Gguru

8:25 AM, June 08, 2005  
Blogger Paul M. said...

Just a note: The problem of lockdowns is much more widespread than this script.

First, ANY Gmail-related user script that employs a timer runs a serious risk of getting caught in an endless refresh loop! So be careful what scripts you choose.

Second, there are other causes, such as logging in to Gmail from multiple locations simultaneously. Also, there are reports of Gmail's own Gmail Notifier causing the same refresh loop lockdown!

The REAL problem here, is not a case of bad programming - there should be no reason to have to avoid using timers in scripts. It is Gmail's indefensible decision to lock users out of their own accounts without so much as giving a valid reason or even a warning of what the offending action was! Hiding behind the service being still in 'beta' is lame - over a year in use by millions hardly justifies a complete lack of user support and heavy-handed tactics against those who strive to make Gmail a better product.

11:11 AM, June 08, 2005  
Anonymous SKY said...

Any mirror site to download de script?
Please, post another site.

1:22 PM, June 08, 2005  
Blogger Paul M. said...

@SKY
What kind of problem are you having downloading? (Any error messages?) I just tried and it was fine. The link is up.
PS: Sorry, I don't have a mirror.

1:33 PM, June 08, 2005  
Anonymous Anonymous said...

The message is: "File does not exist or was removed"

2:15 PM, June 08, 2005  
Blogger Paul M. said...

Are you using the posted link from this blog? Or are you trying to D/L from another site? I'm able to D/L the file w/o any problem.

The files location is:
Gmail Smart-Delete Button

Do you have any firewall security that may be blocking the address?

Also, try typing:
http://kuru4u.spymac.com/scripts/Gmail_Smart-Delete_Button.user.js into the address bar of a new tab. See if the source code loads.

3:03 PM, June 08, 2005  
Blogger mobile247 said...

that was quick! :D i've noticed that the button is now working for the search page as well, there is just one unfortunate side effect. at the bottom, the "more actions" dropdown gets duplicated. since i can't include an <img> tag on this comment, here's a link to the image: http://images3.fotopic.net/?iid=ycj5cf&outx=511&quality=70&original=1&noresize=1&nostamp=1

8:09 PM, June 08, 2005  
Blogger Paul M. said...

@ s.h.a.d.o.w

I was cloning the first blank node to use as a spacer:
spacer=insert_container
.childNodes[insert_container
.childNodes.length-4].cloneNode(false);


Apparently, (thanks to your attentiveness) the search page has no available blank to clone.

Therefore, I have recoded this to create a blank text element node.
spacer=document.createTextNode(" ");
That should fix that issue.

By the time you read this the file will have been updated on the server. (Ver. 0.3.7). (Just re-D/L using the 0.3.6 link until I add the new posting.

Thanks s.h.a.d.o.w!

8:42 PM, June 08, 2005  
Blogger mitten said...

It looks like gmail has changed their url, so you'll need to add these to your script configuration:

http://mail.google.com/mail*
https://mail.google.com/mail*

6:53 AM, June 21, 2005  
Blogger Paul M. said...

@Mitten
You are using an old version. The latest, version 0.3.8 already addresses this.

Go to the main page and install it.
http://smart-delete-button.blogspot.com/

9:20 AM, June 21, 2005  

<< Home