Skip to content

Instantly share code, notes, and snippets.

@wayne530
Created December 31, 2010 18:51
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 wayne530/761244 to your computer and use it in GitHub Desktop.
Save wayne530/761244 to your computer and use it in GitHub Desktop.
Remove all wall posts from your Facebook profile
// 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