Skip to content

Instantly share code, notes, and snippets.

View brzrkr's full-sized avatar

Nic Dienstbier brzrkr

View GitHub Profile
@Peleg
Peleg / fb_bd_liker.js
Created November 27, 2014 21:31
Facebook Birthday Liker - likes your friends' posts for your birthday
/**
*
* Facebook Birthday Liker -
* Likes your friends' posts for your birthday
*
* Usage:
* 1. Face the fact that you're an ungrateful, lazy being
* 2. Paste the following code in your console
*
*/
// 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) {
// 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);
@emsia
emsia / abs.js
Last active August 29, 2015 14:08
// ==UserScript==
// @name Absterge
// @namespace https://gist.github.com/emsia/9a7cae31d7aa9ddb6f60
// @include http://*.facebook.com/*
// @include https://*.facebook.com/*
// @require http://code.jquery.com/jquery-1.7.1.min.js
// ==/UserScript==
function parseUri (str) {
var o = parseUri.options,
// ==UserScript==
// @name Absterge
// @namespace http://userscripts.org/users/astojanov
// @include http://*.facebook.com/*
// @include https://*.facebook.com/*
// @require http://code.jquery.com/jquery-1.7.1.min.js
// ==/UserScript==
@TamerShlash
TamerShlash / facebook-auto-delete-set-of-group-members.js
Last active August 29, 2015 14:07 — forked from michaelv/facebook-mass-delete-group-members.js
This JavaScript removes a specified set of Facebook group members. Tested with Google Chrome on 10/10/2014. PLEASE READ the Usage section in the file. Known issues: 1) When Facebook responds slowly, the script might experience hickups 2) Occasionally, the error 'this user is not a member of the group' pops up.
/* Slightly customized version of https://gist.github.com/michaelv/11145168
Usage:
1. Put the IDs you want to remove in the globalToBeRemoved array, and make sure
they are strings
2. Go to the group's members page (https://www.facebook.com/groups/GID/members/)
3. Paste the code (after adding the IDs to globalToBeRemoved) In the Javascript
console, and then wait until the work is done. It takes a reasonable time.
*/
var globalToBeRemoved = ["10000152515xxxx","10000152515xxxx"];
@ryansinn
ryansinn / FaceBook Activity Purge.user.js
Last active August 29, 2015 14:07
Facebook Activity Purge
// ==UserScript==
// @name FaceBook Activity Purge
// @namespace http://ryansinn.com/
// @include http://*.facebook.com/*/allactivity*
// @include https://*.facebook.com/*/allactivity*
// @require http://code.jquery.com/jquery-latest.js
// @version 1.2.2
// @description delete all FB Activity
// @author Ryan Sinn
// @match *://*.facebook.com/*/allactivity*
@boogheta
boogheta / scrolldown_and_unfold.js
Created August 11, 2014 15:02
Scroll and unfold a webpage within PhantomJS or artoo.js
// Handle script with no argument for DEBUG as an artoo bookmarklet
if (typeof(arguments) == "undefined") {
arguments = [60, 20, 15, function(){console.log("FINISHED!");}];
}
(function(endScript, timeout, idle_timeout, ajax_timeout) {
var timeout = Math.max(30, timeout) * 1000,
idle_timeout = idle_timeout * 1000,
ajax_timeout = ajax_timeout * 1000;
@nirgeier
nirgeier / Delete all facebook members (all the one visible on a given page)
Last active July 27, 2020 08:25
Delete all facebook group members on a given page. Usage: Copy this script, open developers console (F12) in chrome (win) and paste this script. The script will delete all the members that you can see in the given page. Once the script is done you should see a blank members page,
/**
* This script will delete all group members which are displayed in a given page.
*
* @author: Nir Geier
*
* Usage:
* Load as many users as you need, then open console and paste this script in teh console.
* Once the script finished executing you will be see blank members page, reload the next
* page and start the process again.
*
@nbriz
nbriz / leave_facebook.js
Last active October 16, 2018 10:36 — forked from subimage/jquery-2.1.1.min.js
all-in-one script ( with parameters ) >> big thnx to @subimage && xtra updates by Luigi DiGangi
// forked from subimage's modifications of my much messier prior scripts
// ( https://gist.github.com/subimage/d952e49c9184d6a7a74f )
// after entering jquery into ur console, enter the code below in ur console
// then load a few months of activity && enter leaveFacebook(); into ur console
// u can specify parameters like so: leaveFacebook('Unlike'); if u only want to unlike
// or leaveFacebook('Unfriend'); if u only want to unfriend
// etc...
// visit nickbriz.com/facebook for vidz && details