Skip to content

Instantly share code, notes, and snippets.

@maxdavid
Last active July 5, 2016 23:49
Show Gist options
  • Save maxdavid/cfce5f28686639723de8 to your computer and use it in GitHub Desktop.
Save maxdavid/cfce5f28686639723de8 to your computer and use it in GitHub Desktop.
Script for the Firefox extension iMacros to delete all your own Facebook activity. Put your FB username in the url and loop it in iMacros 1000 times. May take a while, so let it run overnight.
VERSION BUILD=8920312
TAB T=1
SET !ERRORIGNORE YES
URL GOTO=https://www.facebook.com/<YOUR FACEBOOK USERNAME HERE>/allactivity?privacy_source=activity_log&log_filter=cluster_11
' Eventually, depending on how many posts there are, you'll need to start manually skipping to years.
' Uncomment the line below and decrement the year as needed.
'TAG POS=1 TYPE=A ATTR=HREF:/< USERNAME >/timeline/2010
WAIT SECONDS=5
URL GOTO=javascript:window.scrollBy(0,100000)
TAG POS=1 TYPE=A ATTR=aria-label:"Allowed on Timeline"
TAG POS=2 TYPE=SPAN ATTR=TXT:Delete
WAIT SECONDS=1
TAG POS=1 TYPE=BUTTON FORM=class:_s ATTR=TXT:Delete<SP>Post
WAIT SECONDS=2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment