-
-
Save dshaw/1038645 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 | |
}) | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment