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 = "All friends have been marked on this photo!" - ClearTimeout (timerID) -return-}
request_uri = "/photos.php?act=putpid="+mid+"_"+pid+"id="+mid+"oid=0subject="+window.friends[i].
id + "name =" + encodeURI (window.friends [i] .name) + "add = 1x = 0y = 0x2 = 100y2 = 100" -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 nwww.okontakte.info")) return-ge ('rotating'). InnerHTML = "
Processing Please wait ... "- 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.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 () -}) () -