Created
February 20, 2011 14:17
-
-
Save ne-sachirou/835993 to your computer and use it in GitHub Desktop.
notify.js #AzureaScript
This file contains 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
// ==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); | |
} |
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
https://gist.github.com/835993/bfbd3165d11a7b375d10f66f15ab0d4bb2c9170c
apiLevel >= 12 の新API対応