diff options
author | janus_wel | 2008-10-21 10:27:41 +0000 |
---|---|---|
committer | janus_wel | 2008-10-21 10:27:41 +0000 |
commit | 9a8cf4e8a04daad9865d00075c269f04adaefcf8 (patch) | |
tree | 8aac1aac8f9a63e462a40e57d5dbef6103aa026b /matanico.js | |
parent | 4a9c57ab1b5675da743d11d75838fb9089491119 (diff) | |
download | vimperator-plugins-9a8cf4e8a04daad9865d00075c269f04adaefcf8.tar.bz2 |
liberator -> liberator.modules
- buffer
- commandline
- commands
- hints
- ..etc
コマンド追加時に使う addUserCommand の第 3 引数に指定する関数の第 1 引数が String から Object に変更したのに対応
- ldrize_cooperation_fetch_flv.js
- lookupDictionary.js
- matanico.js
- nicontroller.js
- nnp_cooperation.js
- reading.js
- youtubeamp.js
migemo_hint.js で一時的にグローバルオブジェクト plugins を定義
応急処置なのであとで削る必要あり
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@21797 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'matanico.js')
-rw-r--r-- | matanico.js | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/matanico.js b/matanico.js index cfdb6e1..cd5f8ba 100644 --- a/matanico.js +++ b/matanico.js @@ -4,8 +4,8 @@ * @description update Twitter's status to current video name and comment
* @description-ja 今見てる動画のタイトルとコメントを Twitter に投稿する
* @author janus_wel <janus_wel@fb3.so-net.ne.jp>
- * @version 0.60
- * @minversion 1.1
+ * @version 0.62
+ * @minversion 2.0pre 2008/10/16
* ==VimperatorPlugin==
*
* LICENSE
@@ -89,7 +89,7 @@ function NicoScraper() {}
NicoScraper.prototype = {
constants: {
- VERSION: '0.50',
+ VERSION: '0.62',
WATCH_PAGE: 1,
WATCH_URL: '^http://www\\.nicovideo\\.jp/watch/[a-z]{2}\\d+',
TAG_PAGE: 2,
@@ -117,7 +117,7 @@ NicoScraper.prototype = { return null;
},
- getURL: function() { return liberator.buffer.URL; },
+ getURL: function() { return liberator.modules.buffer.URL; },
getSubject: function() {
if(this.pagecheck() === this.constants.WATCH_PAGE) {
@@ -176,9 +176,11 @@ NicoScraper.prototype = { var scraper = new NicoScraper;
-liberator.commands.addUserCommand(['matanico'], "update Twitter's status to current video name and comment",
- function(arg, special) {
+liberator.modules.commands.addUserCommand(['matanico'], "update Twitter's status to current video name and comment",
+ function(args, special) {
try {
+ var arg = args.string;
+
// build post string -----
var post_string;
// domain check
@@ -238,7 +240,7 @@ liberator.commands.addUserCommand(['matanico'], "update Twitter's status to curr // ':matanico!' display the evaluated format.
if(special) {
- liberator.util.copyToClipboard(post_string, true);
+ liberator.modules.util.copyToClipboard(post_string, true);
return;
}
|