Skip to content

Instantly share code, notes, and snippets.

Avatar

Garrett Hyder nightbook

View GitHub Profile
@nightbook
nightbook / gist:f5ab39cd39751013d547
Last active Aug 29, 2015
Woocommerce Bootle Deposit
View gist:f5ab39cd39751013d547
<?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 Dec 31, 2014
Twitter Follow All - jQuery Snippet
View jquery-twitter-follow.js
// 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');
@nightbook
nightbook / gist:8484268
Last active Jan 3, 2016
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.
View gist:8484268
$('button[class^="UserFollowButton"]:not(.dim)').trigger('click');
You can’t perform that action at this time.