Skip to content

Instantly share code, notes, and snippets.

View dunglas's full-sized avatar

Kévin Dunglas dunglas

View GitHub Profile
@dunglas
dunglas / invite-friends.js
Last active May 23, 2016 20:56
Invite all your Facebook friends (v3)
// Scroll to the bottom of the friend list and type the following line in your console
// For checkboxes (e.g. invite to an event)
var c = document.querySelectorAll("a[role='checkbox']"); for (var i = 0; i < c.length; i++) c[i].click();
// For invite buttons (e.g. invite to like a page)
var c = document.querySelectorAll(".uiButton._1sm"); for (var i = 0; i < c.length; i++) c[i].click();
@dunglas
dunglas / sfFacebookNewDoctrineGuardAdapter.class.php
Created March 8, 2011 08:55
sfFacebookConnectPlugin Adapter for recents sfDoctrineGuardPlugin versions.
<?php
/**
*
* @package sfFacebookConnectPlugin
* @author Kévin Dunglas <[email protected]>
* @author Fabrice Bernhard
*
*/
class sfFacebookNewDoctrineGuardAdapter extends sfFacebookGuardAdapter {