Better HN
topnewbestaskshowjobs
Log inSign up

Chramard

2 karma · joined Sep 10, 2009 (17y ago) · 1 submissions

Submissions

comment 17y ago · link · parent

This one transforms the links rather than opening them automatically. For pages with a lot of pdf links.

    javascript:(function(){dl=document.links;for(i=0;i<dl.length;++i){if(dl[i].href.substr(-4)==".pdf"){dl[i].href="http://docs.google.com/gview?embedded=true&url=+dl[i].href;}}})()