This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (async() => { | |
| const csrf = ''; // Fill in before running | |
| const divs = document.querySelectorAll('#content > div > div > section > ul > li > div[data-rate-action]'); | |
| for (const div of divs) { | |
| const action = div.getAttribute('data-rate-action'); | |
| if (!action) continue; | |
| const url = action.startsWith('/') ? action : `/${action}`; | |
| const body = new URLSearchParams({rating: 0, __csrf: csrf}).toString(); |