Hacking Gmail

(Grace) #1

Chapter 6 — Gmail and Greasemonkey 103


// Perhaps it was fixed and the timing of reports was off,
but this
// should make things more certain. I always welcome
constructive
// bug reports, I have never had a problem so I need
information from
// those who have to change anything.
// Version 2.5:
// - Change default include pattern to match a change in
Gmail’s code.
// Version 2.4:
// - Remove red text. You may restore the red color by un-
commenting
// the proper line in _gd_make_dom_button.
// - Do not show for a message in the spam folder.
// - Minor tweaks.
// Version 2.3:
// - Add/change code to track down/eliminate error
conditions.
// - Display error when there are no selected messages to
delete.
// - Include delete button in all labels and ‘All Mail’
section.
// Version 2.2:
// - Patched to work with GreaseMonkey 0.3.3
//
// -----------------------------------------------------------


// Originally written by Anthony Lieuallen of
http://www.arantius.com/
// Licensed for unlimited modification and redistribution as
long as
// this notice is kept intact.
// -----------------------------------------------------------


//
// If possible, please contact me regarding new features,
bugfixes
// or changes that I could integrate into the existing code
instead of
// creating a different script. Thank you
//


(function(){


function _gd_dumpErr(e) {
var s=’Error in Gmail Delete Button:\n’;
s+=’ Line: ‘+e.lineNumber+’\n’;
Continued

Free download pdf