Created
June 18, 2011 22:14
-
-
Save bluewhalelabs/1033554 to your computer and use it in GitHub Desktop.
Turntable Growler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Turntable Growler | |
// @namespace http://fluidapp.com | |
// @description Creates growl notifications for chat in turntable | |
// @include * | |
// @author Gregarious Narain | |
// ==/UserScript== | |
(function () { | |
if (window.fluid) { | |
setTimeout(fluid_turntable_chat, 5000); | |
} | |
})(); | |
function fluid_turntable_chat() { | |
jQuery('.messages').bind('DOMSubtreeModified',function(e) { | |
if (e.target.className === '') { | |
txt = jQuery(e.target); | |
window.fluid.showGrowlNotification({ | |
title: "Turntable", | |
description: txt.prev().text() + ' ' + txt.text(), | |
priority: 1, | |
sticky: false | |
}) | |
} | |
}); | |
} |
whoa
U R AWESOME mod (insert at line 26):
jQuery('#btn_upvote').click();
// this might get you banned.
Actually, doesn't work, so we're good. Thought I could always drag out my real click simulator codez, but I love these guys and I can drag my hands away from the keyboard every ~5 mins and actually click.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To install this you have to: