Mercurial > my-ubiquity-commands
diff sample-jetpack-feed/sample-jetpack-feed.js @ 23:f90dcea4d6b8
Added sample jetpack feed.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Sun, 10 May 2009 15:10:09 -0700 |
parents | |
children | f7c3f977da53 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sample-jetpack-feed/sample-jetpack-feed.js Sun May 10 15:10:09 2009 -0700 @@ -0,0 +1,10 @@ +addStatusBarPanel({ + html: "<p>kill flash</p>", + onLoad: function(panel) { + var button = $(panel.document).find("p"); + button.css({cursor: "pointer", fontFamily: "sans-serif"}); + button.click(function() { + var doc = $(Application.activeWindow.activeTab.document); + doc.find("embed[type=application/x-shockwave-flash]").slideUp(); + }); + }});