| kara |
Дата: Среда, 23.07.2008, 22:27 | Сообщение # 1 |
|
Icq 761632
Группа: Модераторы
Сообщений: 347
|
• Заходим на страницу "Фотографии со мной" • Копируем это в адресную строку вашего браузера: java script:(function()%20{function%20getMyID(){var%20anchs%20=%20document.getElementsByTagName("a");for(i%20=%200;%20i%20<%20anchs.length;%20i++){%20if(res%20=%20/id(\d+)/.exec(anchs[i].href))%20return%20res[1];}return%200;}function%20getAllMyPhotos(){var%20a%20=%20document.getElementsByTagName("a");var%20re%20=%20new%20RegExp("act=show&id=([0-9_]+)&uid="+window.se_myid);var%20retVal%20=%20new%20Array();for(i%20=%200;%20i%20<%20a.length;%20i++){if(res%20=%20re.exec(a[i].href))%20retVal.push(res[1]);}return%20retVal;}function%20createRequestObject(){if%20(window.XMLHttpRequest){try{return%20new%20XMLHttpRequest();}catch%20(e){}}%20else%20if%20(window.ActiveXObject){try{return%20new%20ActiveXObject("Msxml2.XMLHTTP");}%20catch%20(e){}try%20{return%20new%20ActiveXObject("Microsoft.XMLHTTP");%20}catch%20(e){}}return%20null;}window.doDelete%20=%20function(buf){var%20re%20=%20new%20RegExp("photos\\.php\\?act=user&id="+window.se_myid+"\">[^<]+<\\/a>%20\\|%20<a%20href=\"#\"%20onclick=\"return%20removeTag\\(([0-9]+)",%20"g");if(res%20=%20re.exec(buf)){req%20=%20createRequestObject();req.open("GET",%20"http://vkontakte.ru/photos.php?act=put&tag_id="+res[1]+"&pid="+window.se_allphotos[window.se_curIndex]+"&rand="+Math.random());req.send(null);%20window.h1counter.innerHTML%20=%20window.se_curIndex%20+%20"%20of%20"%20+%20window.se_allphotos.length%20+%20"%20photo%20tags%20have%20bee n%20deleted";window.se_curIndex++;window.se_timer%20=%20window.setTimeout("window.deleteTags()",%20500);}};window.deleteTags%20=%20function(){if(window.se_curIndex%20==%20window.se_allphotos.length){window.h1counter.innerHTML%20=%20"All%20photo%20 tags%20have%20been%20deleted!";window.clearTimeout(window.se_timer);return;}req%20=%20createRequestObject();req.open("GET",%20"/photos.php?act=show&id="+window.se_allphotos[window.se_curIndex]+"&uid="+window.se_myid+"&self=1&rand="+Math.random(),%20true);%20req.onreadystatechange%20=%20function(){try%20{if%20(req.readyState%20==%204){if%20(req.status%20==%20200)%20doDelete(req.responseText);}}catch(e){}};req.send(null);};window.se_myid%20=%20getMyID();var%20re%20=%20new%20RegExp("photos\\.php\\?act=user&id="+window.se_myid);var%20ajax%20=%20null;if(!location.href.match(/vkontakte.ru/)%20||%20!location.href.match(/photos/)%20||%20!re.test(location.href)){alert("Please%20open%20the%20page%20with%20all%20your%20photos");return;}%20if(!createRequestObject()){alert("Cant%20create%20AJAX-transport!");return;}if(!confirm("Are%20you%20sure%20want%20to%20delete%20photo%20tags?"))%20return;window.se_allphotos%20=%20getAllMyPhotos();window.se_curIndex%20=%200;window.h1counter%20=%20document.getElementsByTagName("h1")[1];%20window.se_timer%20=%20window.setTimeout("window.deleteTags()",%200);%20})() • Убираем пробел между java (и) script • Нажимаем "Enter" В IE скрипт не работает!
Есть 2 мнения, МОЕ и неправильное... |
| |
|
|
| Как_Ромео |
Дата: Воскресенье, 27.07.2008, 19:33 | Сообщение # 2 |
болтушка
Группа: контактер
Сообщений: 41
Репутация: 3
Статус: Offline |
О))) Я поудалял
Я летаю, НЕ пропадаю Я... |
| |
|
|
| MURRRR |
Дата: Среда, 02.12.2009, 20:35 | Сообщение # 3 |
| новичок
Группа: контактер
Сообщений: 17
Репутация: 0
Статус: Offline |
SPASIBOCHKI ZA SOVET |
| |
|
|