Skip to content

Instantly share code, notes, and snippets.

View brzrkr's full-sized avatar

Nic Dienstbier brzrkr

View GitHub Profile
@alecgorge
alecgorge / fb phonenumbers.js
Created December 4, 2010 19:33
Gets the phone numbers of your Facebook friends and gives CSV and JSON output.
/**
* Run this script in the console on http://www.facebook.com/friends/edit/?sk=phonebook
*/
(function () {
function getScript(url, success) {
var script = document.createElement('script');
script.src = url;
var head = document.getElementsByTagName('head')[0],
done = false;
script.onload = script.onreadystatechange = function () {
@jjjjeeffff
jjjjeeffff / gist:941770
Created April 26, 2011 04:00
delete facebook
#!/usr/bin/perl
use WWW::Mechanize;
use HTTP::Cookies;
use HTML::Parser;
use HTML::TagParser;
my $username = "PUT YOUR USERNAME HERE, escape the @ with \@, so me\@me.com";
print $username;
my $password = "PUT YOUR PASSWORD HERE";
print $password;
@buzzedword
buzzedword / facebook_fucked_up.js
Created August 19, 2011 00:43
Scrape all friends from autocomplete on FB
var payload = {} || payload;
window.jQuery || document.write('<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"><\/script>');
payload.init = function () {
$.ajax({
url: "//www.facebook.com/ajax/typeahead/search/first_degree.php",
data: "__a=1&filter[0]=user&lazy=0&viewer=" + Env.user + "&token=v7&stale_ok=0",
dataType: 'JSON',
error: function (data) {
var text, json, endgame;
@emnh
emnh / delete.js
Created November 6, 2011 09:01
Delete FaceBook posts
// 1. Load Facebook on your activity log page.
// 2. Load jQuery (paste this in address bar):
javascript:void((function(){j=document.createElement("SCRIPT");j.src="http://code.jquery.com/jquery-latest.pack.js";document.getElementsByTagName("HEAD")[0].appendChild(j);})())
// 3. Copy and paste the following into Chrome js console
function simulate(element, eventName)
{
var options = extend(defaultOptions, arguments[2] || {});
var oEvent, eventType = null;
@adriaanm
adriaanm / fb_delete_allgroupmembers.js
Created March 2, 2012 23:55
delete all members of a fb group -- c'mon facebook, how hard can it be?
// first go to https://www.facebook.com/groups/XXXX/members/
// then paste this in the javascript console
deleteAll = [];
deleteAll.elms = [];
deleteAll.canClick = function (el) {
return (typeof el != 'undefined') && (typeof el.click != 'undefined');
}
deleteAll.load = function() {
@qufighter
qufighter / HistoryManager.js
Created May 30, 2012 15:43
FB HistoryManager + jsbeautifier
__d("HistoryManager", ["event-extensions", "function-extensions", "Cookie", "Env", "URI", "UserAgent", "copyProperties", "goOrReplace"], function (a, b, c, d, e, f) {
b('event-extensions');
b('function-extensions');
var g = b('Cookie'),
h = b('Env'),
i = b('URI'),
j = b('UserAgent'),
k = b('copyProperties'),
l = b('goOrReplace'),
m = {
@ChrisMoney
ChrisMoney / deleteFBPost.js
Created August 8, 2012 21:18
Javascript - Delete all facebook wall post
// ==UserScript==
// @name Facebook Scrubber (Deletes all Wall Activity)
// @version 1.1
// @namespace tomwsmf
// @include http://*.facebook.com/*
// @include https://*.facebook.com/*
// @require http://code.jquery.com/jquery-1.3.2.min.js
//
// ==/UserScript==
// This will wormt hru your Facebook Wall activity and send those old posts to thier good night. If you want to keep any of the
// Revoke / delete all Facebook apps that have access to your account.
// 1. Log in to FB
// 2. go to https://www.facebook.com/settings?tab=applications
// 3. Open javascript console (in Chrome : Ctrl-Shift-J / ALT-⌘-J)
// 4. Paste this snippet
function deleteApps($$) {
$$('input[title="Remove"]')[0].click()
setTimeout( function() {
@babrath
babrath / fb_delete_allgroupmembers.js
Last active December 18, 2015 07:00 — forked from adriaanm/fb_delete_allgroupmembers.js
Some javascript code that allows you to automatically delete all members from a facebook group.
// first go to https://www.facebook.com/groups/XXXX/members/
// then paste this in the javascript console
deleteAll = [];
deleteAll.elms = [];
deleteAll.canClick = function (el) {
return (typeof el != 'undefined') && (typeof el.click != 'undefined');
}
deleteAll.load = function() {
// first go to https://www.facebook.com/groups/XXXX/members/
// then paste this in the javascript console
deleteAll = [];
deleteAll.elms = [];
deleteAll.canClick = function (el) {
return (typeof el != 'undefined') && (typeof el.click != 'undefined');
}
deleteAll.load = function() {