Bookmarklets

From Mefi Wiki

Jump to: navigation, search

Bookmarklets are small pieces of javascript in a bookmark (or favorite link) used to manipulate a webpage. They are very easy to use and they make utilizing information on the web more dynamic. The following bookmarklets are available to use on Metafilter as a way of using threads more efficiently.

Iceberg273 has created three slightly different bookmarklets to help with quoting other people's comments within your own comment. His website, growlers, no longer has the latest versions of his MeFiMarklets, but you can find the archive.org version of the MeFiMarklets page.

At the randomWalks website, djacobs discusses his two bookmarklets for viewing links found on any webpage. The first bookmarklet alters all the links on the current page so they will open into new windows when you click them. The second alters them to all open in one specific window when you click them. He posted the bookmarklets in a Metafilter thread, just save the links called 'links open windows' and 'links in one window' to your bookmark or favorites folder.

This bookmarklet opens a new window with links to deleted threads/questions. You should run it from the MetaFilter or AskMetaFilter front pages.

javascript:void(A=document.getElementsByTagName('a'),N=[],M=[],f='');for(i=0;i<A.length;i++){ void(h=A[i].href,p=h.indexOf('/mefi/')); if(p!=-1 && h.indexOf('#')==-1 && A[i].parentNode.tagName.toLowerCase()=='span'){ void(k=h.substring(p+6,h.length),N[N.length]=k,M[k]=1)}} for (i=N[0]; i>N[N.length-1]; i--) { if (!M[i]) f += '<a target=_blank href=http://'+location.host+'/mefi/'+i+'>'+i+'</a>\n'; } void((W=window.open()).document.write('Deleted threads: ' + f)); void(W.document.close());

Many more bookmarklets can be found at squarefree.

Personal tools