You can create "bookmarklets" in Safari. Bookmarklets are, essentially, little pieces of script that you can save in Safari so you can do some short cut-like actions. For example, you can create a book mark to scroll to the bottom of the Safari web page, create a QR code of the URL so you can quickly and easily transfer the web site address to your mobile phone or you can create a book mark to get a pop-up to enter search terms for Amazon. I find they make browsing with Safari easier.
(A) Here are the steps to make a bookmarklet
Create a bookmark in Safari. It does not matter what page you choose, just that it is made. Title this bookmark to describe the bookmark (e.g. "Create PDF"). See this picture
2) Edit the bookmark as shown in this picture
3) Enter the Java script in the URL field as shown here (the various JavaScripts are given below):
With JavaScripts as bookmarklets, any time you are on a web page and you want to do an action, press the book mark and Safari will do its "magic."
(B) Here are the bookmarklets I have used/am using.
NOTE: Copy them exactly as shown here - then paste them in the URL field of your bookmark in Safari as shown above.
Scroll to Bottom
Search Amazonjavascript:scroll(0,document.getElementsByTagName( %22body%22)%5B0%5D.scrollHeight);
Open in iCabjavascript:q=%22%22+(window.getSelection?window.ge tSelection():document.getSelection?document.getSel ection():document.selection.createRange().text);if (!q)q=prompt(%22Search%20terms?%20...%20%22,%22%22 );if(q!=null)%7Blocation=%22http://www.amazon.com/exec/obidos/external-search?mode=blended&tag=bookmardirect-20&keyword=%22+escape(q).replace(/%20/g,%22+%22);%7Delse%7Blocation=%22http://www.amazon.com/exec/obidos/redirect-home/bookmardirect-20%22;%7Dvoid%200
Save as PDFjavascript:location.href='web'+location.href.subst ring(4);
Send to Evernotejavascript:pdf_url=location.href;location.href='ht tp://pdfmyurl.com?url='+escape(pdf_url)
Make QR Code (Link)javascript:(function()%7BEN_CLIP_HOST='http://www.evernote.com';try%7Bvar%20x=document.createEle ment('SCRIPT');x.type='text/javascript';x.src=EN_CLIP_HOST+'/public/bookmarkClipper.js?'+(new%20Date().getTime()/100000);document.getElementsByTagName('head')%5B0% 5D.appendChild(x);%7Dcatch(e)%7Blocation.href=EN_C LIP_HOST+'/clip.action?url='+encodeURIComponent(location.href )+'&title='+encodeURIComponent(document.title);%7D %7D)();
Add Library Books to Bluefire E-Reading Appjavascript:location.href='http://chart.apis.google.com/chart?cht=qr&chs=300x250&chl='+encodeURIComponent( location.href);
CSS Killerjavascript:void%28s%3Dprompt%28%27Find%20text%3A%2 7%2C%27%27%29%29%3Bs%3D%27%28%27+s+%27%29%27%3Bx%3 Dnew%20RegExp%28s%2C%27gi%27%29%3Brn%3DMath.floor% 28Math.random%28%29*100%29%3Brid%3D%27z%27%20+%20r n%3Bb%20%3D%20document.body.innerHTML%3Bb%3Db.repl ace%28x%2C%27%3Cspan%20name%3D%27%20+%20rid%20+%20 %27%20id%3D%27%20+%20rid%20+%20%27%20style%3D%5C%2 7color%3A%23000%3Bbackground-color%3Ayellow%3B%20font-weight%3Abold%3B%5C%27%3E%241%3C/span%3E%27%29%3Bvoid%28document.body.innerHTML%3Db %29%3Balert%28%27Found%20%27%20+%20document.getEle mentsByName%28rid%29.length%20+%20%27%20matches.%2 7%29%3Bwindow.scrollTo%280%2Cdocument.getElementsB yName%28rid%29%5B0%5D.offsetTop%29%3B
Calculatorjavascript:void(obj=document.getElementsByTagName( 'style'));for(i=0;i%3Cobj.length;i++){void(obj[i].disabled='true')}void(obj=document.getElementsByT agName('link'));for(i=0;i%3Cobj.length;i++){void(o bj[i].disabled='true')}void(theTags='a,abbr,acronym,add ress,applet,area,b,base,basefont,bdo,big,blockquot e,body,br,button,caption,center,cite,code,col,colg roup,dd,del,dfn,dir,div,dl,dt,em,fieldset,font,for m,frame,frameset,h1,h2,h3,h4,h5,h6,head,hr,html,i, iframe,img,input,ins,isindex,kbd,label,legend,li,l ink,map,menu,meta,noframes,noscript,object,ol,optg roup,option,p,param,pre,q,s,samp,script,select,sma ll,span,strike,strong,style,sub,sup,table,tbody,td ,textarea,tfoot,th,thead,title,tr,tt,u,ul,var');th eTags_array=theTags.split(',');for(loop=0;loop%3Ct heTags_array.length;loop++){void(theDokk=document. getElementsByTagName(theTags_array[loop]));{for(loopCount=0;loopCount%3CtheDokk.length;loo pCount++){void(theDokk[loopCount].removeAttribute('style'))}}};
Dictionary & Thesaurusjavascript:expr=prompt('Formula...(eg:%20%202*3%20 +%207/8%20)','');if(expr){with(Math){evl=parseFloat(eval (expr))};if(isNaN(evl)){alert('Not%20a%20number!') }else{void(prompt('Result:',evl))}}else{void(null) }
Find in Pagejavascript:var%20q=escape(window.getSelection()),i ,ii;if(!q){for(i=0;i%3Cframes.length;i++){var%20fr =frames[i];try{q=escape(fr.getSelection())}catch(e){};if(q)b reak;else{for(ii=0;ii%3Cfr.frames.length;ii++){try {q=escape(fr.frames[ii].getSelection())}catch(e){};if(q)break;}}}}if(!q)v oid(q=prompt('Enter%20word%20to%20define%3A','')); if(q)void(location.href='http://www.dictionary.com/cgi-bin/dict.pl?term='+q);
Improve Readabilityjavascript:void%28s%3Dprompt%28%27Find%20text%3A%2 7%2C%27%27%29%29%3Bs%3D%27%28%27+s+%27%29%27%3Bx%3 Dnew%20RegExp%28s%2C%27gi%27%29%3Brn%3DMath.floor% 28Math.random%28%29*100%29%3Brid%3D%27z%27%20+%20r n%3Bb%20%3D%20document.body.innerHTML%3Bb%3Db.repl ace%28x%2C%27%3Cspan%20name%3D%27%20+%20rid%20+%20 %27%20id%3D%27%20+%20rid%20+%20%27%20style%3D%5C%2 7color%3A%23000%3Bbackground-color%3Ayellow%3B%20font-weight%3Abold%3B%5C%27%3E%241%3C/span%3E%27%29%3Bvoid%28document.body.innerHTML%3Db %29%3Balert%28%27Found%20%27%20+%20document.getEle mentsByName%28rid%29.length%20+%20%27%20matches.%2 7%29%3Bwindow.scrollTo%280%2Cdocument.getElementsB yName%28rid%29%5B0%5D.offsetTop%29%3B
Look Up in 1Passwordjavascript:(function(){readStyle='style-newspaper';readSize='size-medium';readMargin='margin-medium';_readability_script=document.createElement ('SCRIPT');_readability_script.type='text/javascript';_readability_script.src='http://lab.arc90.com/experiments/readability/js/readability.js?x='+(Math.random());document.getEle mentsByTagName('head')[0].appendChild(_readability_script);_readability_css =document.createElement('LINK');_readability_css.r el='stylesheet';_readability_css.href='http://lab.arc90.com/experiments/readability/css/readability.css';_readability_css.type='text/css';_readability_css.media='all';document.getElem entsByTagName('head')[0].appendChild(_readability_css);_readability_print_ css=document.createElement('LINK');_readability_pr int_css.rel='stylesheet';_readability_print_css.hr ef='http://lab.arc90.com/experiments/readability/css/readability-print.css';_readability_print_css.media='print';_r eadability_print_css.type='text/css';document.getElementsByTagName('head')[0].appendChild(_readability_print_css);})();
Open in Atomic Web Browserjavascript:window.location=%27onepassword://%27+window.location
Open in iCab Web Browserjavascript:window.location='atomic://'+location.href
Send to Instapaperjavascript:location.href='web'+location.href.subst ring(4);
Save Webpage to Goodreader Appjavascript:function%20iprl5()%7Bvar%20d=document,z =d.createElement('scr'+'ipt'),b=d.body,l=d.locatio n;try%7Bif(!b)throw(0);d.title='(Saving...)%20'+d. title;z.setAttribute('src',l.protocol+'//www.instapaper.com/j/SrztHioaPNq1?u='+encodeURIComponent(l.href)+'&t='+ (new%20Date().getTime()));b.appendChild(z);%7Dcatc h(e)%7Balert('Please%20wait%20until%20the%20page%2 0has%20loaded.');%7D%7Diprl5();void(0)
Subscribe to RSS feedjavascript:window.location='g'+location.href
Split Page in Twojavascript:var%20b=document.body;var%20GR________b ookmarklet_domain='http://www.google.com';if(b&&!document.xmlVersion){void(z =document.createElement('script'));void(z.src='htt p://www.google.com/reader/ui/subscribe-bookmarklet.js');void(b.appendChild(z));}else{loca tion='http://www.google.com/reader/view/feed/'+encodeURIComponent(location.href)}
Translate (to English)javascript:document.write('%3CHTML%3E%3CHEAD%3E%3C/HEAD%3E%3CFRAMESET%20COLS=\'50%25,*\'%3E%3CFRAME%2 0SRC='%20+%20location.href%20+%20'%3E%3CFRAME%20SR C='%20+%20location.href%20+%20'%3E%3C/FRAMESET%3E%3C/HTML%3E')
Wikipediajavascript:void(0);void(0);void(0);void(0);void('A dd%20this%20text%20into%20the%20code%20to%20suppre ss%20the%20tooltip%20with%20long%20script');void(0 );void(0);void(0);void(0);void(0);void(0);void(0); q=location.href;void(location.href='http://translate.google.com/translate?u='+q);
Open in Skyfire web browserjavascript:Qr=prompt('Search%20Wikipedia%20for','' );if(Qr)location.href='http://en.wikipedia.org/wiki/Special:Search?search='+escape(Qr)+'&fulltext=Sear ch'
Open in Skyfire VideoQ appjavascript:location.href='skyfire'+location.href.s ubstring(4);
Note that I've not tried this (I don't own VideoQ). However, it will open the Skyfire browser, so it may work for videoQ. Good luck.javascript:window.location='skyfire://'+location.href
Increase Font Size (With Reflow)
Decrease Font Size (With Reflow)javascript:var%20p=document.getElementsByTagName(' *');for(i=0;i%3Cp.length;i++)%7Bif(p%5Bi%5D.style. fontSize)%7Bvar%20s=parseInt(p%5Bi%5D.style.fontSi ze.replace(%22px%22,%22%22));%7Delse%7Bvar%20s=12; %7Ds+=2;p%5Bi%5D.style.fontSize=s+%22px%22%7D
Open in Photon Browserjavascript:var%20p=document.getElementsByTagName(' *');for(i=0;i%3Cp.length;i++)%7Bif(p%5Bi%5D.style. fontSize)%7Bvar%20s=parseInt(p%5Bi%5D.style.fontSi ze.replace(%22px%22,%22%22));%7Delse%7Bvar%20s=12; %7Ds-=2;p%5Bi%5D.style.fontSize=s+%22px%22%7D
Page Zipper (automatically activates "Next Page" button)javascript:(function()%7Bif(document.location.href .indexOf('http')===0)document.location.href=docume nt.location.href.replace(/%5Ehttp/,'photon');%7D)();
View Page Sourcejavascript:(function(){if(window['pgzp']){_pgzpToggleBookmarklet();}else{window._page_zipp er_is_bookmarklet=true;window._page_zipper=documen t.createElement('script');window._page_zipper.type ='text/javascript';window._page_zipper.src='http://www.printwhatyoulike.com/static/pagezipper/pagezipper_10.js';document.getElementsByTagName('h ead')[0].appendChild(window._page_zipper);}})();
This are the ones I've used at some point in the past, or am using now. If you have one you are using that's not in this list, please send me a PM and I'll get it added here.javascript:(function(){var a=window.open('about:blank').document;a.write('Sou rce of '+location.href+'');a.close();var b=a.body.appendChild(a.createElement('pre'));b.sty le.overflow='auto';b.style.whiteSpace='pre-wrap';b.appendChild(a.createTextNode(document.docu mentElement.innerHTML))})();
If I have made an error in MY copying and pasting and a JavaScript doesn't work for you, please let me know and I'll get it fixed.
Have fun!
Marilyn



12Likes
LinkBack URL
About LinkBacks




Reply With Quote




32GB WIFI/3G 'The New ipad'


