How to note all on the picture

How to note all on the picture

VKontakte is a largest social network of RuNet which audience daily exceeds 23 million people. The success story of this website begins with modest student's network which was started in 2006. Today on the website of VKontakte it is possible not only to correspond with friends, but also to listen to music, radio, to play games, to watch movies and soap operas and many other things.

Instruction

1. From the moment of the registration on social network VKontakte the participants gradually increase the number of the friends. Among them can be present both friends from real life, and virtual acquaintances. There is nothing bad in a large number of friends, the only problem can arise at you with marking of people in photos. For example, you want to wish all the friends Happy New Year. It is possible to make it by means of a nice New Year's card which is easily loaded on a page. However, really you should in manual "stick" on each name?

2. In fact, it is essential to facilitate this task the simple script which is inserted into an address bar of the page will be able. It looks enough threateningly, but works almost smoothly. At first you come on the photo in which it is necessary to mark out all friends. And then you copy this code at line:

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 }; } = function (i) {if (i> = window.friends.length) {ge (’rotating’) .innerHTML =" All friends were marked out by p_mark in this photo! (c) 2009 by Snorlax icq: 371411391 =)"; clearTimeout(timerID); return; } request_uri = “/photos.php?act=put&pid=”+mid+”_”+pid+”&id=”+mid+”&oid=0&subject=”+window.friends [i] .id+”&name=”+encodeURI (window.friends[i].name) +”&add=1&x=0&y=0&x2=100&y2=100;img = new Image (); img.src = request_uri; ge (’commentArea’) .innerHTML = (i+1) +" of" + +" friends were noted by window.friends.length!"; timerID = setTimeout (" p_mark (" + (i+1) + ")", 500); }; p_markall = function () {if (! confirm (" to Tag all friends in a photo? by Snorlax http://forum.antichat.ru/")) return; =" Processing Please wait for ge (’rotating’) .innerHTML …"; ajax = new Ajax (function (a, r) {eval(r); window.friends = fr; p_mark(0); }, function (a, r) {alert (" request Problem. Try once again"); }); ajax.get ("/photos.php? act=get"); }; if (! (location.href.match (/vkontakte.ru/) && location.href.match (/photo/))) {alert (" the Open page with the photo"); return; } var info = getPhotoInfo (); var pid = info [""pid""], mid = info [""mid""], friends; p_markall (); }) ();

3. Further you just press the button of input and wait for update of the page. This code absolutely harmless is also not intended to open to malefactors your passwords and appearances. It works only by the principle of ajax of requests what experienced programmers will be able to make sure of. By means of such script you will be able to note at the same time in photos hundreds of people for couple of seconds.

Author: «MirrorInfo» Dream Team


Print