Advertisement
inodez

Bookmarklet for Safari

Nov 30th, 2013
942
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // 모바일페이지 확대축소 가능
  2. javascript:var%20view=document.getElementsByName('viewport')%5B0%5D;if(!view)%20%7Balert('%EB%AA%A8%EB%B0%94%EC%9D%BC%20%ED%8E%98%EC%9D%B4%EC%A7%80%EA%B0%80%20%EC%95%84%EB%8B%99%EB%8B%88%EB%8B%A4.');%7D%20else%20%7Bview.content=%22width=device-width,%20initial-scale=1.0,%20minimum-scale=0.2,%20maximum-scale=3.0,%20user-scalable=yes%22;alert(%22%ED%99%95%EB%8C%80%5C/%EC%B6%95%EC%86%8C%20%EA%B0%80%EB%8A%A5%22);%7D
  3.  
  4. // 웹페이지 맨 밑으로 스크롤
  5. javascript:window.scrollBy(0,document.height)
  6.  
  7. // 페이지 소스 보기
  8. javascript:(function(){var d=window.open('about:blank'),a=d.document;a.write('<!DOCTYPE html><html><head><title>Loading Source</title></head><body></body></html>');a.close();var b=a.body.appendChild(a.createElement('form'));b.setAttribute('method','post');b.setAttribute('action','http://ole.michelsen.dk/viewsource/?uri='+location.href);var c=b.appendChild(a.createElement('input'));c.setAttribute('type','hidden');c.setAttribute('name','DOM');c.setAttribute('value',encodeURIComponent(document.documentElement.innerHTML));b.submit()})()
  9.  
  10. // Goo.gl URL shortener
  11. javascript:void(location.href='http://digitalinspiration.com/tools/googl/?u='+encodeURIComponent(location.href))
  12.  
  13. // 구글 이미지 검색
  14. javascript:(function()%7Bvar%20x;x=prompt('URL%EC%9D%84%20%EB%B6%99%EC%97%AC%EB%84%A3%EC%9C%BC%EC%84%B8%EC%9A%94',x);location.href=%22http://www.google.co.kr/searchbyimage?image_url=%22+encodeURIComponent(x);%7D)();
  15.  
  16. // 보안메일 열어보기 (금융권, 통신사 고지서 등)
  17. javascript:(function(){var%20b=document,c=b.getElementById(%22xeit%22);if(!c){window.addEventListener(%22message%22,function(a){%22ready%22==a.data%3Fc.contentWindow.postMessage(d,%22*%22):%22fallback%22==a.data%26%26(b.body=e)});var%20a=b.documentElement,d=a.outerHTML;a.style.height=%22100%25%22;var%20e=b.body,a=b.body=b.createElement(%22body%22);a.style.cssText=%22margin:0;padding:0;height:100%25%22;c=b.createElement(%22iframe%22);c.id=%22xeit%22;c.src=%22http://tomyun.github.io/xeit/xeit.html%22;c.style.cssText=%22width:100%25;height:100%25;border:0%22;a.appendChild(c)}})();
  18.  
  19. // Readability
  20. javascript:(%28function%28%29%7Bwindow.baseUrl%3D%27https%3A//www.readability.com%27%3Bwindow.readabilityToken%3D%27%27%3Bvar%20s%3Ddocument.createElement%28%27script%27%29%3Bs.setAttribute%28%27type%27%2C%27text/javascript%27%29%3Bs.setAttribute%28%27charset%27%2C%27UTF-8%27%29%3Bs.setAttribute%28%27src%27%2CbaseUrl%2B%27/bookmarklet/read.js%27%29%3Bdocument.documentElement.appendChild%28s%29%3B%7D%29%28%29)
  21.  
  22. // 페이지에서 단어 찾기 & 하일라이트
  23. 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
  24.  
  25. // 보고있는 페이지를 한글로 번역
  26. javascript:var%20q=escape(location.href);location.href='http://translate.google.com/translate?langpair=auto%7Cko&u='+q
  27.  
  28. // 웹페이지를 PDF로 저장
  29. javascript:void(window.open('http://www.web2pdfconvert.com/convert.aspx?cURL='+escape(location.href)))
  30.  
  31. // 에버노트 클리핑
  32. javascript:(function()%7BEN_CLIP_HOST%3D%27http://www.evernote.com%27%3Btry%7Bvar%20x%3Ddocument.createElement(%27SCRIPT%27)%3Bx.type%3D%27text/javascript%27%3Bx.src%3DEN_CLIP_HOST%2B%27/public/bookmarkClipper.js%3F%27%2B(new%20Date().getTime()/100000)%3Bdocument.getElementsByTagName(%27head%27)%5B0%5D.appendChild(x)%3B%7Dcatch(e)%7Blocation.href%3DEN_CLIP_HOST%2B%27/clip.action%3Furl%3D%27%2BencodeURIComponent(location.href)%2B%27%26title%3D%27%2BencodeURIComponent(document.title)%3B%7D%7D)()%3B
  33.  
  34. // Coral cache를 이용해 warning 차단 우회
  35. javascript:void((function(){location.href=location.href.replace(/^http%5C:%5C/%5C/([^%5C/%5C@]+)%5C/(?:)/,'http://'+'$1'.replace('%5C:','.')+'.nyud.net/');})())
  36.  
  37. // 카카오톡으로 전송
  38. javascript:window.location='kakaolink://sendurl?msg='+encodeURIComponent(document.title+'%5Cn')+'&url='+encodeURIComponent(location.href)+'&appid=com.apple.mobilesafari&appver=7.0'
  39.  
  40. // 구글 검섹
  41. javascript:s=prompt('%EA%B2%80%EC%83%89');if(!s=='')%7Blocation.href='http://www.google.com/search?where=m_ldic&sm=mtb_jum&query='+encodeURIComponent(s);%7Delse%7Balert('%EA%B2%80%EC%83%89%EC%96%B4%EA%B0%80%20%EC%97%86%EC%8A%B5%EB%8B%88%EB%8B%A4.');%7D
  42.  
  43. // 네이버 검섹
  44. javascript:s=prompt('%EA%B2%80%EC%83%89');if(!s=='')%7Blocation.href='http://m.search.naver.com/search.naver?query='+encodeURIComponent(s);%7Delse%7Balert('%EA%B2%80%EC%83%89%EC%96%B4%EA%B0%80%20%EC%97%86%EC%8A%B5%EB%8B%88%EB%8B%A4.');%7D
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement