Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const dislike = (el) => {
- return new Promise((res, rej) => {
- el.click();
- setTimeout(() => {
- document.querySelector('a.itemAnchor').click();
- setTimeout(() => {
- res();
- }, 1000);
- }, 2000);
- });
- }
- async function run (coll) {
- for (let el of coll) {
- await dislike(el);
- };
- }
- const coll = document.getElementsByClassName('PageLikeButton');
- run(coll);
Add Comment
Please, Sign In to add comment