Script Summary: for old gmail version, add floating delete button in gmail macros scrips
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);
}



