Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (async () => {
- let dislike = async (token, id) => {
- let resp = await fetch(`https://backlog.wylsa.stream/tasks/${id}/user_update`, {
- "credentials": "include",
- "headers": {
- "accept": "application/json, text/javascript, */*; q=0.01",
- "accept-language": "ru,en;q=0.9",
- "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-csrf-token": token,
- "x-requested-with": "XMLHttpRequest",
- },
- "referrer": `https://backlog.wylsa.stream/statuses/${id}`,
- "referrerPolicy": "strict-origin-when-cross-origin",
- "body": `task%5Bid%5D=${id}&task%5Blikes%5D=none&task%5Bdislikes%5D=add`,
- "method": "PUT",
- "mode": "cors",
- });
- return resp.ok
- }
- let token = `+jj/Batg3jCt5/0CRkIDHKDZi6sxU0dvGG7JjylnDhB5idtxgymcfAgxDXDWfbcDmn41wHDXFtT6cOjSGhn0JA==`
- let dislikes = 0;
- for (;;) {
- await dislike(token, 1)
- dislikes++
- console.log('disliked:', dislikes)
- }
- })()
Advertisement
Add Comment
Please, Sign In to add comment