Chrome Tips – More Bookmarklets

by on September 12th, 2009

As I have mentioned earlier that how to add bookmarklets in Chrome which will give you all facilities that Google Toolbar has got with lots of SEO tools here. Now lets add some more cool stuff in Chrome. Google Chrome has ability to add bookmarklets as a page. Right click at bookmarks bar and add page. Name it something and paste javascript code there to enable powerful functionality within Chrome. Following tips will enable you to highlight all links in Chrome, make URls clickable, display all links on a page in new tabs and block annoying ads in Chrome.

Highlight all Links on a page Yellow in Chrome
javascript:for(nIx5Bs=0;nIx5Bs<document.all.length;nIx5Bs++){if(document.all[nIx5Bs].tagName=='A'){with(document.all[nIx5Bs].style){if(backgroundColor=='yellow'){void(backgroundColor=document.bgColor)}else{void(backgroundCol or='yellow')}}}}
Make URL’s Clickable in Chrome

Add ability to double click non-hyperlink links to visit the URL instead of copy and paste them in a new tab. This one will make all non-hyperlinks on a page clickable.

javascript: )function(){var%20D=document;%20D.body.normalize();%20F(D.body);%20function%20F(n){var%20u,A,M,R,c,x ;%20if(n.nodeType==3){%20u=n.data.search(/https?\:\/\/[^\s]*[^.,">\s\)\]]/);%20if(u>=0)%20{%20M=n.splitText(u);%20R=M.splitText(RegExp.lastMatch.length);%20A=document.createE lement("A");%20A.href=M.data;%20A.appendChild(M);%20R.parentNode.insertBefore(A,R);%20}%20}else%20if (n.tagName!="STYLE"%20&&%20n.tagName!="SCRIPT"%20&&%20n.tagName!="A")for(c=0;x=n.childNodes[c];++c)F(x);%20}%20})();
Display all links on a page in new tab in Chrome
javascript:WN7z=open('','Z6','width=450,height=600,scrollbars,resizable,menubar');DL5e=document.link s;with(WN7z.document){write('<base%20target=_blank>');for(lKi=0;lKi<DL5e.length;lKi++){write(DL5e[lKi].toString().link(DL5e[lKi])+'<br><br>')};void(close())}
Removes Flash, Java and Background Music
Block ads in Chrome – Adblocker
javascript: (function(){function%20R(w){try{var%20d=w.document,j,i,t,T,N,b,r=1,C;for(j=0;t=["object","embed","applet","iframe"][j];++j){T=d.getElementsByTagName(t);for(i=T.length-1;(i+1)&&(N=T[i]);--i)if(j!=3||!R((C=N.contentWindow)?C:N.contentDocument.defaultView)){b=d.createElement("div");b.style .width=N.width;%20b.style.height=N.height;b.innerHTML="<del>"+(j==3?"third-party%20"+t:t)+"</del>";N.parentNode.replaceChild(b,N);}}}catch(E){r=0}return%20r}R(self);var%20i,x;for(i=0;x=frames[i];++i)R(x)})()

Share