Created
December 31, 2010 18:51
-
-
Save wayne530/761244 to your computer and use it in GitHub Desktop.
Remove all wall posts from your Facebook profile
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
// first click 'Older posts' on your wall until all posts are visible, then run this in firebug | |
script = document.createElement('script'); | |
script.type = 'text/javascript'; | |
script.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js'; | |
document.getElementsByTagName("head")[0].appendChild(script); | |
setTimeout(function() { | |
$('a.uiCloseButton[title=Remove]').each(function() { | |
var ajaxify = $(this).attr('ajaxify'); | |
var data = { | |
fb_dtsg: Env.fb_dtsg, | |
post_form_id: Env.post_form_id, | |
post_form_id_source: 'AsyncRequest', | |
confirmed: '1', | |
lsd: '', | |
'nctr[_mod]': 'pagelet_wall' | |
}; | |
var parts = ajaxify.split('?', 2); | |
var params = parts[1].split('&'); | |
for (var i = 0; i < params.length; i++) { | |
var kv = params[i].split('=', 2); | |
data[decodeURIComponent(kv[0])] = kv[1]; | |
} | |
$.ajax({ | |
async: false, | |
cache: false, | |
data: data, | |
url: '/ajax/minifeed.php?__a=1', | |
type: 'POST' | |
}); | |
}); | |
}, 2000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment