View gist:ea948e12e5cfaafb2604fec47a60d082
// 1. Load https://twitter.com/following entirely
// 3. Run this in console.
[].slice.call(document.querySelectorAll('.unfollow-text')).forEach(function(button) {
button.click();
});
View responsive-layouts.scss
/*=============================================================
= Responsive Margin & Padding Shortcuts =
=============================================================*/
$margin-xxs: 2px;
$margin-xs: 5px;
$margin-sm: 10px;
$margin-md: 15px;
$margin-lg: 30px;
$margin-xl: 50px;
View fbDeleteActivityNoModal.iim
VERSION BUILD=8961227 RECORDER=FX
TAB T=1
SET !ERRORIGNORE YES
SET !TIMEOUT_STEP 0
SET !LOOP 0
TAG POS=1 TYPE=A ATTR=TXT:Close
WAIT SECONDS = 1
TAG POS=1 TYPE=SPAN ATTR=CLASS:_55pe&&TXT:
View fbUnlikeActivity.iim
VERSION BUILD=8961227 RECORDER=FX
TAB T=1
SET !ERRORIGNORE YES
SET !TIMEOUT_STEP 0
SET !LOOP 0
TAG POS=1 TYPE=A ATTR=TXT:Close
WAIT SECONDS = 2
TAG POS=1 TYPE=SPAN ATTR=CLASS:_55pe&&TXT:
View fbDeleteActivity.iim
VERSION BUILD=8961227 RECORDER=FX
TAB T=1
SET !ERRORIGNORE YES
SET !TIMEOUT_STEP 0
SET !LOOP 0
TAG POS=1 TYPE=A ATTR=TXT:Close
WAIT SECONDS = 1
TAG POS=1 TYPE=SPAN ATTR=CLASS:_55pe&&TXT:
View executeOnDiv.js
var eventFired = false,
objectPositionTop = $('#element').offset().top;
$(window).on('scroll', function() {
var currentPosition = $(document).scrollTop();
if (currentPosition > objectPositionTop && eventFired === false) {
eventFired = true;
alert('');
View imgControl.js
// more information about this at https://github.com/danielhaim1/ImgControl.js
$(window).on('load', function() {
// function to get naturalWidth, naturalHeight
(function($) {
function img(url) {
var i = new Image;
i.src = url;
return i;
View ellipsis-title.php
/**==========================================================================
Ellipsis Title
Description: If title longer than 70 characters, truncate and show ellipsis.
Instructions: copypaste to functions.php
Usage: echo short_title();
==========================================================================**/
function short_title() {
View rotatingbanner.js
var howOften = 5; //number often in seconds to rotate
var current = 0; //start the counter at 0
var ns6 = document.getElementById&&!document.all; //detect netscape 6
// place your images, text, etc in the array elements here
var items = new Array();
items[0]="<a href='#'><img src='http://placehold.it/300x250'></a>"; //a linked image
items[1]="<a href='#'><img src='http://placehold.it/300x250'></a>"; //a linked image
items[2]="<a href='#'><img src='http://placehold.it/300x250'></a>"; //a linked image
View socialshare.php
// Working exaple w/ WordPress
$url = get_the_permalink();
$image = wp_get_attachment_image_src(get_post_thumbnail_id(), 'thumb' );
$description = get_the_excerpt();
$title = get_the_title();
// example of how to echo:
echo get_share_link($url, $image, $title, $description, 'facebook');
echo get_share_link($url, $image, $title, $description, 'twitter');
echo get_share_link($url, $image, $title, $description, 'reddit');