Skip to content

Instantly share code, notes, and snippets.

View nightbook's full-sized avatar

Garrett Hyder nightbook

  • Allscenes Media Inc.
  • Victoria, British Columbia, Canada
View GitHub Profile
@nightbook
nightbook / gist:8484268
Last active January 3, 2016 15:39
Pinterest Follow All - jQuery Console Snippet - Instructions: Simple Inspect a Pinterest page with follow buttons and execute through the console, should click all follow buttons excluding unfollow buttons. *This is how I quickly follow all my followers en masse.
$('button[class^="UserFollowButton"]:not(.dim)').trigger('click');
@nightbook
nightbook / gist:f5ab39cd39751013d547
Last active August 29, 2015 14:09
Woocommerce Bootle Deposit
<?php
/**
* WooCommerce Bottle Deposit
* --------------------------
* Add bottle deposit fee to checkout
*/
function woo_add_bottle_deposit_fee($cart_object) {
global $woocommerce;
$deposit = 0;
@nightbook
nightbook / jquery-twitter-follow.js
Created December 31, 2014 20:38
Twitter Follow All - jQuery Snippet
// Place into your Inspect Console to Follow All on Page
$('.not-following .follow-button').trigger('click');
// Place into your Inspect Console to UnFollow All on Page
$('.following .follow-button').trigger('click');