Created
August 15, 2024 09:20
-
-
Save TD540/bb7a6dd233e058198555c317b7f0335b to your computer and use it in GitHub Desktop.
Unblock Everyone On Instagram
This file contains 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
/* | |
Unblock Everyone On Instagram | |
- Log in to you account and load instagram.com/accounts/blocked_accounts | |
- Paste this script in your browser console and hit enter. | |
This will automatically click every unblock- and confirmation button every 5 seconds. This delay ensures that the UI has time to update and that the confirmation dialog appears before proceeding to the next unblock action. | |
Public service announcement: | |
Running scripts in your browser's console can be dangerous. Always ensure you understand the script you're executing and its implications. | |
https://www.facebook.com/selfxss | |
*/ | |
function unblockEveryoneOnInstagram(index = 0) { | |
let unblockButtons = document.querySelectorAll(".wbloks_1"); | |
if (index < unblockButtons.length) { | |
let button = unblockButtons[index]; | |
if (button.textContent.trim() === "Unblock") { | |
button.click(); | |
setTimeout(() => { | |
let confirmButton = document.querySelector('div[role="dialog"] button:nth-child(1) > div'); | |
if (confirmButton) { | |
confirmButton.click(); | |
} | |
setTimeout(() => unblockEveryoneOnInstagram(index + 1), 5000); | |
}, 1000); | |
} else { | |
unblockEveryoneOnInstagram(index + 1); | |
} | |
} else { | |
console.log("All unblock actions completed."); | |
} | |
} | |
unblockEveryoneOnInstagram(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment