Skip to content

Instantly share code, notes, and snippets.

@ne-sachirou
Created February 20, 2011 14:17
Show Gist options
  • Save ne-sachirou/835993 to your computer and use it in GitHub Desktop.
Save ne-sachirou/835993 to your computer and use it in GitHub Desktop.
notify.js #AzureaScript
// ==AzureaScript==
// @author http://c4se.sakura.ne.jp/profile/ne.html
// @scriptUrl http://c4se.sakura.ne.jp/widgets/azurea/
// @date 2011-03-13
// @site https://gist.github.com/835993
// @license public domain
// ==/AzureaScript==
var _notify;
if (System.apiLevel >= 12) {
_notify = function(text) { // @param String:
System.isActive ? System.showNotice(text) :
System.showMessage(text, text, 0x100000);
}
} else {
_notify = function(text) { // @param String:
System.showNotice(text);
}
}
function ReceiveFavorite(source, // @param User Object:
target, // @param User Object:
target_object) { // @param Status Object:
_notify('Favs@' + source.screen_name + ': ' + target_object.text);
}
@ne-sachirou
Copy link
Author

@ne-sachirou
Copy link
Author

@ne-sachirou
Copy link
Author

Commit 445d1d1328aa28f9f4b9b69f8e4f290f296b621a to ne-sachirou/AzureaVim - GitHub ne-sachirou/AzureaVim@445d1d1
AzureaVimへ移動

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment