Sharp bookmarklets |
Have some sharp blades, fellow seeeker... First published at searchlores in October 2005. Version 0.07 Translate, search, do weird stuff... bookmarklets galore! Introduction Bookmarklets Searching... Translating... Other bookmarklets |
Easy to store (just simple bookmarks, duh) Powerful (you will be amazed) Portable (upload regularly your bookmars somewhere: "File --> Import & Export --> Export Opera bookmarks" and then download them wherever you are "File --> Import & Export --> Import Opera bookmarks"). (Of course you can also always bookmark (or remember) this very page and then 'load' the following useful bookmaklets on the fly) |
(Ancient seekers' proverb) |
To make the bookmarklets work on pages throughout the www, right-click on the links below and choose Bookmark link, or
Add to Favorites, or whatever, from the pop-up menu (or the equivalent on non-Windows machines).
You can also directly drag the link into your "Bookmarks", "Links bar" or
"Favorites" menu. When and if a security question pops up, simply answer 'Yes'. The code is then integrated in your browser. Now, wherever you are on the web, you can use the bookmarklets simply clicking on them. |
javascript:
var lastEL=document.body;
var lastStyle=document.body.getAttribute('style');
var EL_KILLA=1;
function hover(x){
e=x.srcElement;
if(EL_KILLA){
window.status='press DEL to delete '+e.tagName+', ESC to cancel.';
lastEL.setAttribute('style',lastStyle);
lastEL = e;
lastStyle = e.getAttribute('style');
e.setAttribute('style', 'border:2px dashed red');
}
};
function key(x){
k = x.keyCode;
if(k==27){
EL_KILLA=0;
window.status='';
lastEL.setAttribute('style',lastStyle);
}
if(k==0 && EL_KILLA){
lastEL.setAttribute('style',lastStyle='display:none');
window.status=lastEL.tagName+' deleted.';
}
};
window.status='busy..';
document.onkeypress=key;
a=document.getElementsByTagName('*');
for(i=0; a.length!=i; i++){
a.item(i).onmouseover=hover;
};
window.status='done. point and press DEL on any element. ESC to cancel.';
void(0);