Skip to content

Instantly share code, notes, and snippets.

@giovannefeitosa
Last active December 27, 2015 04:49
Show Gist options
  • Save giovannefeitosa/7269558 to your computer and use it in GitHub Desktop.
Save giovannefeitosa/7269558 to your computer and use it in GitHub Desktop.
Delete facebook chat messages
/**
* Excluir Conversas Facebook
*
* Autor: Giovanne Afonso
* Email: [email protected]
* Data: 01/11/2013
*/
(function(){var h=function(c,d){d=d||document;return d.getElementsByClassName(c)};var i=function(a){return document.getElementById(a)};var j=function(c){return document.getElementsByName(c)};alert('/**\n * Excluir Conversas Facebook\n * \n * Autor: Giovanne Afonso\n * Email: [email protected]\n * Data: 01/11/2013\n */');var k=h('_k_');function deletefriend(a){k[a].click();var b=h('uiToggle wrap openToggler')[0];var c=h('uiSelectorButton uiButton uiButtonOverlay',b)[0];c.click();var d=h('itemAnchor',b);var e=d[7];e.click();var f=h('_44 uiButton uiButtonConfirm')[0];var g=j('delete_conversation')[0];g.click()}setInterval(function(){deletefriend(0)},1000)}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment