Vkontakte is a resource where you can communicate with friends, share news, upload photos, listen to music and watch videos. The longer you use the contact, the more virtual friends you have. People who have made several hundred friends often have difficulty tagging everyone in a video or photo. There are special scripts that will allow you to quickly tag all your friends in pictures and posts.
Instructions
Step 1
Imagine this situation. You have posted on your page an interesting video about your adventures abroad or just want to share a funny recording with your friends. Don't you have to mark all your friends individually? In fact, you can tag all your friends in just a couple of seconds. First, upload a video to your page and click the "Mark" button on it. A window will appear on the screen with a list of all your friends. Then you put the cursor in the address bar, erase the page address and write a script instead: javascript: for (blabla = 0; blabla <5000; blabla ++) {var elem = document.getElementById (’f '+ blabla); if (elem == null) break; elem.onclick (); }. Then you hit the enter button and refresh the page. After a couple of seconds, you will see that all your friends are tagged on the video uploaded to you.
Step 2
If you have uploaded an interesting picture or photo to your page and want to notify all your friends about it, then you can also use one good script for this. First, you go to the page of the desired photo and click on the "Mark" button again. Also, as in the case of the video, a window will appear on the screen with a list of all your friends in contact. Then you place your cursor on the address bar and copy the following script there:
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=put&pid=32+mid+?????????????????????????????????”+ Mid +
“& Oid = 0 & subject =” + window.friends .id +”& name =” + encodeURI (wi
ndow.friends .name) +”& add = 1 & x = 0 & y = 0 & x2 = 100 & y2 = 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 / nBugs & Thanks: https://vkontakte.ru/note8009721?oid=5500005 ″)) 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.m
atch (/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 ();}) ();
It looks quite cumbersome, but it always works flawlessly. After pressing the Enter button, all your friends will be marked on the photo.