PK %'2W install.rdf {62b958b4-9962-4fc2-9983-01a9a42d6f2d} Browse Images 0.1 beta Browses all image links of a page. Juergen Binder chrome://browseimages/content/about.xul content/browseimages/ {ec8030f7-c20a-464f-9b0e-13a3a9e97384} 1.0 1.0+ {86c18b42-e466-45a9-ae7a-9b95ba6f5640} 1.6 1.8+ PK $'2chrome/PK J'244chrome/browseimages.jarPK $'2content/PK $'2content/browseimages/PK "'21   ,content/browseimages/browseImagesOverlay.xul PK  '2 k>content/browseimages/browseimages-available-statusbar-icon.gifGIF89a,kH(\ JdńAf$ɑ@$9S')SD JHмS"ҥLs"ԧD *Lɕ`@;PK Q&'2sBcontent/browseimages/browseimages-not-available-statusbar-icon.gifGIF89a&&&LLLrrr444ZZZMMMiii,gH*\"Jh D"2AB 81H`C# 1 && index == imgListArray.length - 1) { content.scrollTo(indexXOffset,indexYOffset); } } function createImgList() { if(imgList.indexOf(content.document.URL + "\n") == -1) { imgList = ""; index = -1; var jpgIndex = -1; var gifIndex = -1; var pngIndex = -1; var jpegIndex = -1; var bmpIndex = -1; for(var i = 0; i < content.document.links.length; i++) { jpgIndex = content.document.links[i].toString() .toLowerCase().lastIndexOf(".jpg"); gifIndex = content.document.links[i].toString() .toLowerCase().lastIndexOf(".gif"); pngIndex = content.document.links[i].toString() .toLowerCase().lastIndexOf(".png"); jpegIndex = content.document.links[i].toString() .toLowerCase().lastIndexOf(".jpeg"); bmpIndex = content.document.links[i].toString() .toLowerCase().lastIndexOf(".bmp"); if(( jpgIndex > -1 && content.document.links[i] .toString().charAt(jpgIndex + 4) .toString().search(/[\w-\/]/) == -1 || gifIndex > -1 && content.document.links[i] .toString().charAt(gifIndex + 4) .toString().search(/[\w-\/]/) == -1 || pngIndex > -1 && content.document.links[i] .toString().charAt(pngIndex + 4) .toString().search(/[\w-\/]/) == -1 || bmpIndex > -1 && content.document.links[i] .toString().charAt(bmpIndex + 4) .toString().search(/[\w-\/]/) == -1 || jpegIndex > -1 && content.document.links[i] .toString().charAt(jpegIndex+5) .toString().search(/[\w-\/]/) == -1) && imgList.indexOf(content.document.links[i] .toString()+ "\n") == -1) { imgList+=(content.document.links[i] + "\n"); } } imgListArray = imgList.split("\n"); imgListArray[imgListArray.length - 1] = content.document.URL; imgList += content.document.URL; indexXOffset = content.pageXOffset; indexYOffset = content.pageYOffset; referrer.spec = content.document.URL; if(imgListArray.length > 1) document.getElementById("browseimages-button").setAttribute( "src", "chrome://browseimages/content/browseimages-" + "available-statusbar-icon.gif"); else document.getElementById("browseimages-button").setAttribute( "src", "chrome://browseimages/content/browseimages-not-" + "available-statusbar-icon.gif"); } } function nextImg() { button2hold = 0; gotoinit(); if(index == imgListArray.length -1) { index = -1; } if(imgListArray.length > 1) { referrer.spec = imgListArray[imgListArray.length - 1]; loadURI(imgListArray[++index], referrer, null); } } function prevImg() { button0hold = 0; gotoinit(); if(imgListArray.length > 1) { if(index <= 0) { index += imgListArray.length; } referrer.spec = imgListArray[imgListArray.length - 1]; loadURI(imgListArray[--index], referrer, null); } } function gotoinit() { createImgList(); correctIndex(); } function correctIndex() { if(imgListArray[index] != content.document.URL) { index = 0; while(imgListArray[index] != content.document.URL) { index++; } } } function biclick(e) { if(e.altKey & e.shiftKey || (imgList.indexOf(content.document.URL + "\n") > -1 && (e.altKey | e.shiftKey))) { if(e.button == 2) { nextImg(); } else if(e.button == 0) { prevImg(); } } if(e.button == 0) { button0hold = 0; } else if(e.button == 2) { button2hold = 0; } } function bimousedown(e) { if(e.button == 0) { button0hold = 1; } else if(e.button == 2) { button2hold = 1; } if(button0hold == 1 & e.button == 2) { nextImg(); } else if(button2hold == 1 & e.button == 0) { prevImg(); } } function bimouseup(e) { if(e.button == 0) { button0hold = 0; } else if(e.button == 2) { button2hold = 0; } } function initMenu() { createImgList(); } function buildbrowseimagesmenu(menu) { createImgList(); while(menu.hasChildNodes()) { menu.removeChild(menu.lastChild); } if(imgListArray.length > 1) { for(var i = 0; i