Skip to content

Instantly share code, notes, and snippets.

@assada
Last active December 31, 2015 20:09
Show Gist options
  • Save assada/f4c92c48581d2b7af6ff to your computer and use it in GitHub Desktop.
Save assada/f4c92c48581d2b7af6ff to your computer and use it in GitHub Desktop.
(function myLoop (i) {
setTimeout(function () {
var xmlhttp = new XMLHttpRequest();
xmlhttp.open('GET', 'http://xjedi.com/forum/index.php?act=rep&type=add&mid='+i+'&message=Happy%20New%20Year!', true);
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4) {
if(xmlhttp.status == 200) {
clearTimeout(timeout);
console.info('User #'+i+' +');
}
}
};
xmlhttp.send(null);
var timeout = setTimeout( function(){ xmlhttp.abort(); console.log("Time over") }, 10000);
if (--i) myLoop(i);
}, 1000);
})(45370); //maxId
@assada
Copy link
Author

assada commented Dec 31, 2015

Что это?

Ставим плюсики всем пользователям xjedi.com. Особенно полезно на Новый Год!

Как использовать

  1. Заходим на xjedi.com/forum
  2. Авторизируемся
  3. Нажимаем F12 (Открываем Дебаг панель)
  4. Открываем консоль
  5. Вставляем код
  6. Жмакаем Enter
  7. ????
  8. PROFIT

Автор: Starboy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment