Skip to content

Instantly share code, notes, and snippets.

@andrearota
Created January 1, 2014 20:18
Show Gist options
  • Save andrearota/8211153 to your computer and use it in GitHub Desktop.
Save andrearota/8211153 to your computer and use it in GitHub Desktop.
Script to be run inside a Chrome JS console to delete all the messages and conversations from your Facebook inbox. Instruction: 1 - open your Facebook inbox folder https://www.facebook.com/messages/ 2 - open the Chrome JS console (ALT+CMD+J on Mac OS X) 3 - paste the script and press enter The script will start to open every conversation in your…
setInterval(function() {
document.getElementsByClassName('_k_')[0].click();
document.getElementsByClassName('uiSelectorButton uiButton uiButtonOverlay')[0].click();
document.getElementsByClassName('itemAnchor')[7].click();
document.getElementsByName('delete_conversation')[0].click()
}, 500);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment