// Delete-n-Next: Delete currnet message and move to Next message // Bookmarklet to load Delete-n-Next.txt //javascript:(function(){if(location.host.indexOf('runbox')<0){alert('Not a Runbox site!')}else{n=self.name;r=/Runbox/;if(n.match(r)){n=n.replace(r,'Delete-n-Next')}else{n=''}wn=window.open('',n,'resizable,scrollbars,width=200,height=100,left='+(screen.width-200-8)+',top=0');(D=wn.document).write('Delete-n-Next');if(navigator.userAgent.indexOf('Opera')>=0)D.close();}})(); tmout=60; cls=1; wf='width='+(screen.width-100)+',height=200,left=50,top=50,resizable=yes'; nxt=''; function rNbX2(){ if(wn.document.forms && wn.document.forms.length>0 && wn.document.forms['list']){ clearInterval(tid); if(cls){wn.close()} opener.location.href=nxt self.close(); }else{ if(tmr>=tmout){ clearInterval(tid); alert('Timeout'); if(cls){wn.close()} opener.location.href=nxt self.close(); } tmr++ } } if((((L=opener.location.href).indexOf('/mail/read'))>0) && ((L.indexOf('message=null'))<0)){ K=opener.document.links; for(i=0;i>'){ nxt=opener.document.links[i].href } } F=opener.document.forms[0]; try{ fldTag='folder_id'; fld=F.elements[fldTag].value; }catch(e){ fldTag='folder'; fld=F.elements[fldTag].value; } wn=window.open(F.action+'?'+fldTag+'='+fld+'&delete_msg=1&message='+F.elements['message'].value,'RnBxRsp',wf); tmr=0; tid=setInterval('rNbX2()',1000) document.write('
Deleting Message
Please Wait...
'); document.close(); }else{ alert('Not Reading A Message!') self.close(); }