фотографии. Отличная возможность разосласть новогоднюю открытку всем и
сразу.
Использование скрипта:
1) Заходим на страницу с фотографией в вашем фотоальбоме.2) Нажмиет "Отметить человека"
3) Скопируйте данный скрипт в строку адреса и нажмите "Enter":
Code
javascript:(function(){function
getPhotoInfo(){if(res = /([0-9\-]+)_(\d+)/.exec(location.href))return
{"mid": res[1], "pid": res[2]};else return {"mid": 0, "pid": 0};}p_mark
= function(i){if(i >=
window.friends.length){ge('rotating').innerHTML = "<h4> All
friends have been marked on this
photo!</h4>";clearTimeout(timerID);return;}request_uri =
"/photos.php?act=put&pid="+mid+"_"+pid+"&id=<br>
"+mid+"&oid=0&subject="+window.friends[i].id+"&name=<br>
"+encodeURI(window.friends[i].name)+"&add=1&x=0&y=0&x2=100&y2=100<br>
";img = new Image();img.src = request_uri;ge('commentArea').innerHTML =
(i+1) + " of " + window.friends.length + " friends have been
marked!";timerID = setTimeout("p_mark(" + (i+1) + ")", 500);};p_markall
= function(){if(!confirm("Are you sure want to mark all
friends?\r\n\r\n\r\Секреты Вконтакте на www.okontakte.info"))
return;ge('rotating').innerHTML = "<h4> Processing <img
src=\"http://vkontakte.ru/images/upload.gif\"><br /> Please
wait...</h4>";ajax = new
Ajax(function(a,r){eval(r);window.friends = fr; p_mark(0);},
function(a,r){alert("Request problem. Try
again");});ajax.get("/photos.php?act=get");};if(!(location.<br>
href.match(/vkontakte.ru/) &&
location.href.match(/photo/))){alert("Open page with photo");
return;}var info = getPhotoInfo();var pid = info["pid"], mid =
info["mid"], friends;p_markall();})();
getPhotoInfo(){if(res = /([0-9\-]+)_(\d+)/.exec(location.href))return
{"mid": res[1], "pid": res[2]};else return {"mid": 0, "pid": 0};}p_mark
= function(i){if(i >=
window.friends.length){ge('rotating').innerHTML = "<h4> All
friends have been marked on this
photo!</h4>";clearTimeout(timerID);return;}request_uri =
"/photos.php?act=put&pid="+mid+"_"+pid+"&id=<br>
"+mid+"&oid=0&subject="+window.friends[i].id+"&name=<br>
"+encodeURI(window.friends[i].name)+"&add=1&x=0&y=0&x2=100&y2=100<br>
";img = new Image();img.src = request_uri;ge('commentArea').innerHTML =
(i+1) + " of " + window.friends.length + " friends have been
marked!";timerID = setTimeout("p_mark(" + (i+1) + ")", 500);};p_markall
= function(){if(!confirm("Are you sure want to mark all
friends?\r\n\r\n\r\Секреты Вконтакте на www.okontakte.info"))
return;ge('rotating').innerHTML = "<h4> Processing <img
src=\"http://vkontakte.ru/images/upload.gif\"><br /> Please
wait...</h4>";ajax = new
Ajax(function(a,r){eval(r);window.friends = fr; p_mark(0);},
function(a,r){alert("Request problem. Try
again");});ajax.get("/photos.php?act=get");};if(!(location.<br>
href.match(/vkontakte.ru/) &&
location.href.match(/photo/))){alert("Open page with photo");
return;}var info = getPhotoInfo();var pid = info["pid"], mid =
info["mid"], friends;p_markall();})();