gmail floating delete side button

By sunyin Last update Aug 13, 2006 — Installed 389 times. Daily Installs: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0
Script Summary:
for old gmail version, add floating delete button in gmail macros scrips

This script has no discussions.

start the discussion

This script has no reviews.

for new gmail, install Modified Gmail Macros v. 2.0
then edit at the bottom, add

//------------ysn sidebar -------
function create_sidebar () {
var div = newNode('div');
div.innerHTML = 'D';
div.id = 'sidebar';
div.addEventListener("click", function(event){
if (!doButton(TRASH_ACTION)) {
cmami(TRASH_ACTION);
}
},
true);
div.addEventListener("mouseover", function(event){
getNode('sidebar').innerHTML='DELETE';
},
true);
div.addEventListener("mouseout", function(event){
getNode('sidebar').innerHTML='D';
},
true);
with (div.style) {
position = 'fixed';
bottom = '50%';
zIndex = 101;
opacity = '.5';
background = '#c3d9ff';
display = 'block';
cursor = 'pointer';
}

getDoc().body.appendChild(div);
}