Skip to content

Instantly share code, notes, and snippets.

View everyplace's full-sized avatar

Erin Sparling everyplace

View GitHub Profile
@elithompson
elithompson / turntable-track-muter.js
Created June 29, 2011 02:22
Mute until next track starts
(function(){
function toggleMute() {
$(".mute_btn:first").click();
}
toggleMute();
console.log("muted!");
var $messagesDiv = $(".messages");
function onMessageReceived(event) {
if (event.target.tagName !== "DIV") {
@danheberden
danheberden / finddata.jquery.js
Created June 27, 2011 14:21
findData plugin - search by data-KEY=VALUE on and in current jQ collection
/*
* by Dan Heberden / 2011
* demo at http://jsfiddle.net/danheberden/VjKMY/
* made just for Elijah Manor
* e.g.
* $( 'div' ).findData( 'theDataKey', 'theValue' );
*
* will search in the divs and their children
*/
(function( $ ){