Guest User

http://protect.gost.ru illegal protection crack

a guest
May 31st, 2010
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function fixGreed(){
  2.     td=document.getElementsByClassName("download")[0].getElementsByTagName("table")[1].getElementsByTagName("td")[1];
  3.     td.innerHTML+="<button onclick='showAll();'>Показать все</button>";
  4.     debugger
  5. }
  6. function showAll(){
  7.     td=document.getElementsByClassName("download")[0].getElementsByTagName("table")[1].getElementsByTagName("td")[1];
  8.     lnks=td.getElementsByTagName("a");
  9.     wnd = window.open();
  10.     wnd.focus();
  11.     wnd.document.open();
  12.     txt="<html><head><title>Все фото</title></head><body>";
  13.     for(i=0;i<lnks.length;i++)
  14.         txt+="<img src='http://protect.gost.ru/image.ashx?page="+lnks[i].href.split("pageK=")[1]+"'><br>";
  15.     txt+="</body></html>";
  16.     wnd.document.write(txt);
  17. }
  18. document.addEventListener("DOMcontentLoaded",fixGreed,false);
Add Comment
Please, Sign In to add comment