つんつん・でれでれ

日々のあったことや考えをつらつらと書いていきたいな。

ブックマークレット

現在、iPhone4S(iOS5.1.1)で使用しているブックマークレットを纏めておく。

・PDF化

javascript:pdf_url=location.href;location.href='http://pdfmyurl.com?url='+escape(pdf_url)

Facebookシェア

javascript:var%20d=document,f='http://www.facebook.com/share',l=d.location,e=encodeURIComponent,p='.php?src=bm&v=4&i=1303959743&u='+e(l.href)+'&t='+e(d.title);1;try%7Bif%20(!/%5E(.*%5C.)?facebook%5C.%5B%5E.%5D*$/.test(l.host))throw(0);share_internal_bookmarklet(p)%7Dcatch(z)%20%7Ba=function()%20%7Bif%20(!window.open(f+'r'+p,'sharer','toolbar=0,status=0,resizable=1,width=626,height=436'))l.href=f+p%7D;if%20(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%7Ba()%7D%7Dvoid(0)

twitter tweet bookmarklet

javascript:(function()%7Bvar%20s=document.createElement('script');s.charset='UTF-8';s.src='http://iphone.alice.gs/iMenu/imenu.js';document.body.appendChild(s)%7D)();

・画面の最下部へ移動

javascript:(window.scrollTo(0,document.documentElement.scrollHeight));

・文字化け解消

javascript:(function()%7Bl=location.href,ion='&_gwt_noimg=0',ioff='&_gwt_noimg=1';if(l.match(/http:%5C/%5C/www.google.co.jp%5C/gwt%5C/n/))%7Bif(l.match(ion))%7Blocation.href=l.split(ion)%5B0%5D+ioff;%7Delse%7Blocation.href=l.split(ioff)%5B0%5D+ion;%7D%7Delse%7Blocation.href='http://www.google.co.jp/gwt/n?u='+escape(l)+ion;%7D%7D)();

・検索Find

javascript:void%28s%3Dprompt%28%27Find%20text%3A%27%2C%27%27%29%29%3Bs%3D%27%28%27+s+%27%29%27%3Bx%3Dnew%20RegExp%28s%2C%27gi%27%29%3Brn%3DMath.floor%28Math.random%28%29*100%29%3Brid%3D%27z%27%20+%20rn%3Bb%20%3D%20document.body.innerHTML%3Bb%3Db.replace%28x%2C%27%3Cspan%20name%3D%27%20+%20rid%20+%20%27%20id%3D%27%20+%20rid%20+%20%27%20style%3D%5C%27color%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.getElementsByName%28rid%29.length%20+%20%27%20matches.%27%29%3Bwindow.scrollTo%280%2Cdocument.getElementsByName%28rid%29%5B0%5D.offsetTop%29%3B

・フォント+

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.fontSize.replace(%22px%22,%22%22));%7Delse%7Bvar%20s=12;%7Ds+=2;p%5Bi%5D.style.fontSize=s+%22px%22%7D

・フォント-

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.fontSize.replace(%22px%22,%22%22));%7Delse%7Bvar%20s=12;%7Ds-=2;p%5Bi%5D.style.fontSize=s+%22px%22%7D

Remove all ads