Created
November 30, 2022 08:14
-
-
Save mavaddat/4480e551b1c1d8e0f34d638ffc26fe76 to your computer and use it in GitHub Desktop.
Script to enable or disable gold memberships on a page of students on chesskid
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
// To disable gold memberships for all students on the current page, use the following two lines. | |
let disableGold = document.querySelectorAll("#app > div > main > section > div.body.empty > div.my-kids-list > div > div.list-item-info > div.user-info > div.user-tagline-info > a.membership-icon.icons-gold.remove-gold-membership-small.i-block.mright5") | |
disableGold.forEach(e=>{ setTimeout(e.click(),500) }) | |
// To enable gold memberships for all students on the current page, use the following two lines. | |
let enableGold = document.querySelectorAll("#app > div > main > section > div.body.empty > div.my-kids-list > div > div.list-item-info > div.user-info > div.user-tagline-info > a.membership-icon.icons-gold.add-gold-membership-small.i-block.mright5") | |
enableGold.forEach(e=>{ setTimeout(e.click(),500) }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment