http://mataherry.blogspot.kr/2011/06/get-images-bookmarklet.html
MataHerry: Get Images Bookmarklet
Monday, June 27, 2011

http://search.daum.net/search?w=web&m=bing&q=image+url+bookmarklet

웹페이지 이미지 추출 북마클릿 Bookmarklet

javascript:(function(){s='<script type="text/javascript">function displayLink() { str="Links<br/>"; chkBoxes = document.getElementsByName("chkImage"); for(var i=0;i<chkBoxes.length;i++) { if(chkBoxes[i].type == "checkbox") { if(chkBoxes[i].checked == true) { str+= "<a href="+getImgURL(chkBoxes[i].id)+">"+getImgURL(chkBoxes[i].id)+"</a><br/>";}}} document.getElementById("divLink").innerHTML = str; } function getImgURL(txt) {i = txt.indexOf("imgurl");if (i > 0) {if (txt.indexOf("&",i) > 0) txt = txt.substring(i+7,txt.indexOf("&",i));else if (txt.indexOf("%26",i) > 0) txt = txt.substring(i+7,txt.indexOf("%26",i));} else if (txt.indexOf("4walled")>0) {txt=txt.replace("thumb","src");} else if (txt.indexOf("bing.net")>0) { i=txt.indexOf("url");if (i > 0) { txt = decodeURIComponent(txt.substring(i+4));}} return txt;} function checkAll(state){ chkBoxes = document.getElementsByName("chkImage"); for(var i=0;i<chkBoxes.length;i++) { if(chkBoxes[i].type == "checkbox") chkBoxes[i].checked = state;} displayLink(); }</script><style>.width{float:left;width:23%;max-height:25%;border-style:dotted;border-width:thin;margin:2px} .width img { max-width:90%; max-height:100%; padding:5px; margin:auto; vertical-align:text-top}</style>'; s+='<div id="divLink" style="width:80%;height:180px;position:fixed;background-color:white;overflow:auto;border-style:solid;border-width:medium;padding:5px;">Links</div><div style="height:200px"></div><input type="button" value="Check All" onclick="checkAll(true)"/><input type="button" value="Uncheck All" onclick="checkAll(false)"/>'; cnt = 0; for (i=0;i<document.images.length;i++) { if(document.images[i].src == '' || document.images[i].width<30 || document.images[i].height<30) continue; if(cnt++ % 4==0){s+='<div style="clear: both"></div>' };imgURL=document.images[i].src;if(document.images[i].parentNode.tagName == 'A') {refImg=decodeURIComponent(document.images[i].parentNode.href);if(refImg.indexOf("imgurl")>0) imgURL=refImg;} s+='<div class="width"><input type="checkbox" name="chkImage" id="'+imgURL+'" onchange="displayLink()"/><img src="'+document.images[i].src+'"></div>';};if(s!=''){document.open("text/html");document.write(s);document.close();}else{alert('No images!');}})()





드라마.W.대본.2016.zip


드라마 W 대본 더블유



Posted by joogunking
,