Skip to content

Instantly share code, notes, and snippets.

@htdat
htdat / del_fb_group_pending_posts.js
Created March 4, 2017 15:39
Delete FB group pending posts for admins
/**
* Please use this file at your own risk. I don't provide the support for it.
* Any suggestion or problem are welcomed to report here :)
*/
/**
* Usage:
* 1. Log-in as an group admin in the desktop
* 2. Go to your group pending list like: https://www.facebook.com/groups/[group-id]/pending/
* 3. Insert the following code to your browser console. See the guide: https://developer.chrome.com/devtools/docs/console
@extrasleepy
extrasleepy / contact_me.js
Last active December 5, 2019 19:35
contact_me.js
$(function() {
$("input,textarea").jqBootstrapValidation({
preventSubmit: true,
submitError: function($form, event, errors) {
// additional error messages or events
},
submitSuccess: function($form, event) {
// Prevent spam click and default submit behaviour
$("#btnSubmit").attr("disabled", true);