Skip to content

Instantly share code, notes, and snippets.

@themorgantown
Created November 5, 2015 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save themorgantown/3e3e6a42e17ebcbc766c to your computer and use it in GitHub Desktop.
Save themorgantown/3e3e6a42e17ebcbc766c to your computer and use it in GitHub Desktop.
Automator Script for Unblocking Twitter Accounts En Masse. I recommend turning images off in the 'Develop' menu of Safari.
tell application "Safari"
activate
open location "https://twitter.com/settings/blocked"
delay 1
do JavaScript "document.getElementsByClassName('blocked-text')[0].click()" in current tab of window 1
do JavaScript "document.getElementsByClassName('blocked-text')[1].click()" in current tab of window 1
do JavaScript "document.getElementsByClassName('blocked-text')[2].click()" in current tab of window 1
do JavaScript "document.getElementsByClassName('blocked-text')[3].click()" in current tab of window 1
do JavaScript "document.getElementsByClassName('blocked-text')[4].click()" in current tab of window 1
do JavaScript "document.getElementsByClassName('blocked-text')[5].click()" in current tab of window 1
do JavaScript "document.getElementsByClassName('blocked-text')[6].click()" in current tab of window 1
do JavaScript "document.getElementsByClassName('blocked-text')[7].click()" in current tab of window 1
do JavaScript "document.getElementsByClassName('blocked-text')[8].click()" in current tab of window 1
do JavaScript "document.getElementsByClassName('blocked-text')[9].click()" in current tab of window 1
do JavaScript "document.getElementsByClassName('blocked-text')[10].click()" in current tab of window 1
do JavaScript "document.getElementsByClassName('blocked-text')[11].click()" in current tab of window 1
do JavaScript "document.getElementsByClassName('blocked-text')[12].click()" in current tab of window 1
do JavaScript "document.getElementsByClassName('blocked-text')[13].click()" in current tab of window 1
do JavaScript "document.getElementsByClassName('blocked-text')[14].click()" in current tab of window 1
do JavaScript "document.getElementsByClassName('blocked-text')[15].click()" in current tab of window 1
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment