aboutsummaryrefslogtreecommitdiffstats
path: root/ldrize_cooperation_fetch_flv.js
diff options
context:
space:
mode:
authorjanus_wel2008-10-21 10:27:41 +0000
committerjanus_wel2008-10-21 10:27:41 +0000
commit9a8cf4e8a04daad9865d00075c269f04adaefcf8 (patch)
tree8aac1aac8f9a63e462a40e57d5dbef6103aa026b /ldrize_cooperation_fetch_flv.js
parent4a9c57ab1b5675da743d11d75838fb9089491119 (diff)
downloadvimperator-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 'ldrize_cooperation_fetch_flv.js')
-rw-r--r--ldrize_cooperation_fetch_flv.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ldrize_cooperation_fetch_flv.js b/ldrize_cooperation_fetch_flv.js
index b8bec88..743ba8c 100644
--- a/ldrize_cooperation_fetch_flv.js
+++ b/ldrize_cooperation_fetch_flv.js
@@ -1,6 +1,6 @@
// Vimperator plugin: 'Cooperation LDRize Mappings - Niconico Flv Fetchearg || liberator.buffer.URLr'
// Version: 0.4
-// Last Change: 06-Apr-2008. Jan 2008
+// Last Change: 21-Oct-2008. Jan 2008
// License: Creative Commons
// Maintainer: Trapezoid <trapezoid.g@gmail.com> - http://unsigned.g.hatena.ne.jp/Trapezoid
//
@@ -66,12 +66,12 @@
xhr.open("GET",uri,true);
xhr.send(null);
}
- liberator.commands.addUserCommand(['fetchflv'],'Download flv file from Nicovideo',
+ liberator.modules.commands.addUserCommand(['fetchflv'],'Download flv file from Nicovideo',
function(arg){
- httpGET(arg || liberator.buffer.URL,function(responseText){
+ httpGET(arg.string || liberator.modules.buffer.URL,function(responseText){
var [,title] = responseText.match(/<title>(.*?)<\/title>/i);
liberator.log(title);
- NiconicoFlvHandler(arg || liberator.buffer.URL,title);
+ NiconicoFlvHandler(arg.string || liberator.modules.buffer.URL,title);
});
},{}
);