Skip to content

Instantly share code, notes, and snippets.

@xPomaHx
Created July 1, 2020 14:12
Show Gist options
  • Save xPomaHx/7c33765f73b9a4152d8e9d6595c1e3f3 to your computer and use it in GitHub Desktop.
Save xPomaHx/7c33765f73b9a4152d8e9d6595c1e3f3 to your computer and use it in GitHub Desktop.
(async () => {
var story_id = 7558020;
while (story_id > 5000) {
await fetch("https://pikabu.ru/ajax/vote_story.php", {
"headers": {
"accept": "application/json, text/javascript, */*; q=0.01",
"accept-language": "ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7,fr;q=0.6",
"cache-control": "no-cache",
"content-type": "application/x-www-form-urlencoded; charset=UTF-8",
"pragma": "no-cache",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "same-origin",
"x-requested-with": "XMLHttpRequest"
},
"referrerPolicy": "no-referrer-when-downgrade",
"body": `story_id=${story_id}&vote=-1`,
"method": "POST",
"mode": "cors",
"credentials": "include"
});
story_id--;
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment