1.1 --- a/.vimperatorrc Wed Feb 03 22:31:35 2010 +0900
1.2 +++ b/.vimperatorrc Sat Feb 13 12:07:00 2010 +0900
1.3 @@ -39,10 +39,9 @@
1.4 javascript <<EOM
1.5 (function(){
1.6 function get_tus(w, d) {
1.7 - var win = new XPCNativeWrapper(w.content.window);
1.8 - var s = win.getSelection().getRangeAt(0).toString();
1.9 - var t = liberator.buffer.title;
1.10 - var u = liberator.buffer.URL;
1.11 + var t = content.document.title;
1.12 + var u = content.location.href;
1.13 + var s = content.window.getSelection().getRangeAt(0).toString();
1.14 return [t, u, s];
1.15 }
1.16 liberator.globalVariables.copy_templates = [
1.17 @@ -62,7 +61,7 @@
1.18 return t + ":\n - " + u + (s? ("\n >>\n " + s + "\n <<"): '');
1.19 }},
1.20 { label: 'datestr', custom: function() {
1.21 - return '[' + liberator.buffer.URL.match(/\d\d\d\d-\d\d-\d\d-\d+/) + ']';
1.22 + return '[' + content.location.href.match(/\d\d\d\d-\d\d-\d\d-\d+/) + ']';
1.23 }},
1.24 ];
1.25 })();