Skip to content

Instantly share code, notes, and snippets.

View brzrkr's full-sized avatar

Nic Dienstbier brzrkr

View GitHub Profile
@wassname
wassname / fbmtimelinecleaner.js
Created June 8, 2014 02:34
Facebook Mobile Timeline Cleaner. Take back control of your Facebook Timeline with this activity log scrubber! This script deletes your facebook comments/posts/likes etc.
// ==UserScript==
// @name Facebook Mobile Timeline Cleaner
// @namespace https://github.com/wassname/fbmtimelinecleaner
// @include https://*m.facebook.com/*/allactivity*
// @require http://code.jquery.com/jquery-1.8.3.min.js
// @grant GM_xmlhttpRequest
// @grant GM_getValue
// @grant GM_setValue
// @version 0.40
// ==/UserScript==
@pwlmc
pwlmc / fb-posts-deleter.user.js
Last active August 29, 2015 14:01
Facebook posts deleter userscript. Go to your activitiy log - "Delete old posts" button will show up next to the search input. Paste in posts ids you wish to delete (Graph API will help you with getting ids), click the button and make yourself a coffee, it will take a while. Works fine under Greasemonkey, Tampermonkey seems to have some performa…
// ==UserScript==
// @name Facebook old posts deleter
// @namespace http://fragphace.pl/fb-old-posts-deleter
// @version 0.1
// @description It deletes the facebook posts by ids.
// @match https://www.facebook.com/*
// @copyright Paweł Maciejewski <[email protected]>
// @grant none
// ==/UserScript==
@Terrance
Terrance / ActLogPubLikes.js
Last active January 24, 2016 09:07
A JavaScript snippet for removing likes on public statuses on Facebook. Operates on the mobile site (https://m.facebook.com/<you>/allactivity?log_filter=likes) by searching for lines with a "Public" tag. You need to expand times to search first.
// for all public tags
$(".sx_c87e68").each(function(i, e) {
// navigate up to the root of the item
var r = $(e).parent().parent().parent().parent().parent().next();
var id = r.parent().attr("id");
// open the dropdown
r.find("i").click();
// find the corresponding menu
$(".accelerate").find("a").each(function(j, l) {
if ($(l).data("store").domID == id) {
// ==UserScript==
// @namespace CS255
// @name CS255
// @description CS255 - Assignment 1
// @version 1.1
//
//
// @include http://www.facebook.com/*
// @include https://www.facebook.com/*
// @exclude http://www.facebook.com/messages/*
@michaelv
michaelv / facebook-mass-delete-group-members.js
Created April 21, 2014 15:00
This javascript removes all users from a facebook group. It works with the new facebook layout. Paste this in the javascript console. Script tested in Firefox. Known issues: 1. when facebook responds slowly, the script might experience hickups.. 2. occasionially, the error 'this user is not a member of the group' pops up.. IMPORTANT: add your ow…
var deleteAllGroupMembers = (function () {
var deleteAllGroupMembers = {};
// the facebook ids of the users that will not be removed.
// IMPORTANT: add your own facebook id here so that the script will not remove yourself!
var excludedFbIds = ['1234','11223344']; // make sure each id is a string!
var usersToDeleteQueue = [];
var scriptEnabled = false;
var processing = false;
deleteAllGroupMembers.start = function() {
@marcosfreitas
marcosfreitas / facebook-delete-all-group-members.js
Last active September 22, 2016 10:10 — forked from babrath/fb_delete_allgroupmembers.js
This code works! Facebook disabled the native console brownser, but if you install the "Firebug" extension and run this script, it will work for you! This script does not delete the group, just remove all the other members and then terminates execution.
// first go to https://www.facebook.com/groups/XXXX/members/
// then paste this in the javascript console
// IF YOU WANT NOT TO INSTALL THE FIREBUG EXTENSION, YOU CAN ACTIVATE THE USE OF THE CONSOLE HERE: https://www.facebook.com/selfxss
deleteAll = [];
deleteAll.elms = [];
deleteAll.canClick = function (el) {
return (typeof el != 'undefined') && (typeof el.click != 'undefined');
}
@ryancastro
ryancastro / fb_delete.js
Created February 25, 2014 21:57
Delete all of your Facebook activity. Uses the mobile interface rather than the normal browser interface because this way is much faster and reliable.
// Load Facebook's mobile activity log
// https://m.facebook.com/#{you}/allactivity?log_filter=all
// loads jQuery into Facebook
var jq = document.createElement('script');
jq.src = "//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
// wait for jQuery to load up.
setTimeout(removeIt, 2000);
// 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() {
@hieuk09
hieuk09 / gist:6745070
Created September 28, 2013 18:39
Auto unfriend facebook
// ==UserScript==
// @name Unfriend In Single-Click on Facebook by Cha
// @description This script is useful if you don't want to delete each friends one by one.
// @namespace Cha
// @include *.facebook.com/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js
// @version 3.6.1
// ==/UserScript==
// Developed by Cha(Muhammad Rafizan) - http://fb.com/cha.dae.woong.sunbae
// 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() {