Last active
January 4, 2026 13:27
-
-
Save XReyRobert/3dfbc3f8ed1a24340bbb9e6636065ee2 to your computer and use it in GitHub Desktop.
uncheck all interests in X (paste in console)
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 sleep = ms => new Promise(res => setTimeout(res, ms)); | |
| const rand = (min, max) => min + Math.random() * (max - min); | |
| let total = 0; | |
| let stable = 0; | |
| let lastScroll = -1; | |
| let sinceRest = 0; | |
| while (stable < 4) { | |
| const checked = Array.from(document.querySelectorAll('main input[type="checkbox"]:checked')); | |
| for (const cb of checked) { | |
| if (cb.disabled) continue; | |
| const label = cb.closest('label') || cb.parentElement || cb; | |
| await sleep(rand(2400, 2200)); // long human delay BEFORE each click | |
| label.click(); | |
| total++; | |
| sinceRest++; | |
| // long rest every 8 clicks | |
| if (sinceRest >= 8) { | |
| await sleep(rand(6000, 9000)); | |
| sinceRest = 0; | |
| } | |
| } | |
| const sc = document.scrollingElement || document.documentElement || document.body; | |
| sc.scrollTop = sc.scrollTop + sc.clientHeight * 0.7; | |
| await sleep(rand(3000, 5000)); // slow scroll pause | |
| const current = sc.scrollTop + sc.clientHeight; | |
| if (current === lastScroll) { | |
| stable++; | |
| } else { | |
| stable = 0; | |
| lastScroll = current; | |
| } | |
| } | |
| // final sweep at bottom | |
| const sc = document.scrollingElement || document.documentElement || document.body; | |
| sc.scrollTop = sc.scrollHeight; | |
| await sleep(rand(5000, 7000)); | |
| const checkedFinal = Array.from(document.querySelectorAll('main input[type="checkbox"]:checked')); | |
| for (const cb of checkedFinal) { | |
| if (cb.disabled) continue; | |
| const label = cb.closest('label') || cb.parentElement || cb; | |
| await sleep(rand(1200, 2200)); | |
| label.click(); | |
| total++; | |
| if (++sinceRest >= 8) { | |
| await sleep(rand(6000, 9000)); | |
| sinceRest = 0; | |
| } | |
| } | |
| console.log(`Interest script done. Clicked ${total} checkbox(es).`); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment