From 6ef6dfb1680cea90b94cfdf6aa3a2a633ac5bfc3 Mon Sep 17 00:00:00 2001 From: cd01 Date: Fri, 28 Dec 2012 22:45:08 +0900 Subject: Fix tweet width in twsidebar --- twittperator/twsidebar.tw | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/twittperator/twsidebar.tw b/twittperator/twsidebar.tw index f0c0cba..b8a2a84 100644 --- a/twittperator/twsidebar.tw +++ b/twittperator/twsidebar.tw @@ -136,17 +136,17 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () { "width: " + px(sbWidth - 100) + ' !important' ].join(';')} xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> - - + + - - + + - {escapeBreakers(t.text)} + {escapeBreakers(t.text)} ; -- cgit v1.2.3 From ae78ac575454e229e842729bcc2fe210cbb6d395 Mon Sep 17 00:00:00 2001 From: anekos Date: Tue, 15 Jan 2013 20:56:13 +0900 Subject: フォーマットかわてるねん --- _libly.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_libly.js b/_libly.js index db17233..9471fc4 100644 --- a/_libly.js +++ b/_libly.js @@ -245,7 +245,7 @@ libly.$U = {//{{{ let pluginPath; Error('hoge').stack.split(/\n/).some( function (s) - let (m = s.match(/^(?:\(\))?@chrome:\/\/liberator\/content\/liberator\.js -> (.+):\d+$/)) + let (m = s.match(/-> liberator:\/\/template\/chrome:\/\/liberator\/content\/liberator\.js -> (.+):\d+$/)) (m && (pluginPath = m[1].replace(/\?.*$/, ''))) ); return pluginPath; -- cgit v1.2.3 From abe54a78bc9bdb6384bbed311de5dd9462e70513 Mon Sep 17 00:00:00 2001 From: cd01 Date: Fri, 18 Jan 2013 23:37:48 +0900 Subject: Fix min width in twsidebar --- twittperator/twsidebar.tw | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twittperator/twsidebar.tw b/twittperator/twsidebar.tw index b8a2a84..d4c097a 100644 --- a/twittperator/twsidebar.tw +++ b/twittperator/twsidebar.tw @@ -144,7 +144,7 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () { - + {t.sub || ''} {escapeBreakers(t.text)} -- cgit v1.2.3 From 8f936fc555dd20f2c61f54b40e79b97a5ed201e4 Mon Sep 17 00:00:00 2001 From: cd01 Date: Sat, 19 Jan 2013 01:45:34 +0900 Subject: Add tweetTimeVisible Option --- twittperator/twsidebar.tw | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/twittperator/twsidebar.tw b/twittperator/twsidebar.tw index d4c097a..fccdfa6 100644 --- a/twittperator/twsidebar.tw +++ b/twittperator/twsidebar.tw @@ -56,6 +56,9 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () { // サイドバーが閉じていても、こっそり開始しておく silentStart: false, + // 時間とかRTした人のIDとかの表示 + tweetTimeVisible: false, + // 配列かオブジェクトを返すと、変更できる。 // 文字列 "reject" を返すと、そもそもツイートが表示されなくなる。 modifier: function (msg, tab, streamName) { @@ -144,7 +147,7 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () { - {t.sub || ''} + {(Config.tweetTimeVisible && t.sub) ? t.sub : ''} {escapeBreakers(t.text)} -- cgit v1.2.3 From 5f9f8b699331135b9cd54c95bcb5595bfd1fc650 Mon Sep 17 00:00:00 2001 From: anekos Date: Sun, 20 Jan 2013 00:14:36 +0900 Subject: サブ表示を下にして、改行するようにした。 --- twittperator/twsidebar.tw | 7 ++++--- twittperator/twsidebar/chrome/content/twsidebar.css | 13 +++++++++++++ 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/twittperator/twsidebar.tw b/twittperator/twsidebar.tw index fccdfa6..8a7187e 100644 --- a/twittperator/twsidebar.tw +++ b/twittperator/twsidebar.tw @@ -129,7 +129,7 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () { let xml; let sbWidth = getSidebarWindow().document.width; let richlistitemClasses = [className('tweet-panel'), className('tweet-' + t.type)]; - let nameClass = t.protected ? className('tweet-protected') : ''; + let nameClass = className('item-name') + ' ' + (t.protected ? className('tweet-protected') : ''); xml = - + {(Config.tweetTimeVisible && t.sub) ? t.sub : ''} - {escapeBreakers(t.text)} + {escapeBreakers(t.text)} + {escapeBreakers(t.sub || '')} ; diff --git a/twittperator/twsidebar/chrome/content/twsidebar.css b/twittperator/twsidebar/chrome/content/twsidebar.css index 7081ea2..72755a4 100644 --- a/twittperator/twsidebar/chrome/content/twsidebar.css +++ b/twittperator/twsidebar/chrome/content/twsidebar.css @@ -52,3 +52,16 @@ .tw-anekos-sb-plugin-tweet-follow-my { background-color: lightsalmon !important; } + +.tw-anekos-sb-plugin-item-name { + font-weight: bold; +} + +.tw-anekos-sb-plugin-item-sub { + font-size: 80%; +} + +.tw-anekos-sb-plugin-item-text { + word-break: break-all; +} + -- cgit v1.2.3 From ddc08a2970b54778b6a64c3b7cd8a5e6f749a9fd Mon Sep 17 00:00:00 2001 From: anekos Date: Sun, 20 Jan 2013 00:26:40 +0900 Subject: tweetTimeVisible は削除 :style コマンドで設定する仕様に。 例: :style -name tw-sidebar-hidden-time chrome://* .tw-anekos-sb-plugin-item-time { display: none } --- twittperator/twsidebar.tw | 12 ++++-------- twittperator/twsidebar/chrome/content/twsidebar.css | 9 +++++++-- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/twittperator/twsidebar.tw b/twittperator/twsidebar.tw index 8a7187e..f005760 100644 --- a/twittperator/twsidebar.tw +++ b/twittperator/twsidebar.tw @@ -56,9 +56,6 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () { // サイドバーが閉じていても、こっそり開始しておく silentStart: false, - // 時間とかRTした人のIDとかの表示 - tweetTimeVisible: false, - // 配列かオブジェクトを返すと、変更できる。 // 文字列 "reject" を返すと、そもそもツイートが表示されなくなる。 modifier: function (msg, tab, streamName) { @@ -146,11 +143,10 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () { - - {(Config.tweetTimeVisible && t.sub) ? t.sub : ''} {escapeBreakers(t.text)} - {escapeBreakers(t.sub || '')} + + ; @@ -397,8 +393,8 @@ liberator.modules.TWAnekoSB = ANekoSB = (function () { t.text += ' [\u5730\u57DF: ' + msg.user.location + ']'; } - if (!t.sub && msg.created_at) { - t.sub = new Date(msg.created_at).toLocaleTimeString().replace(/:\d+$/,'');; + if (msg.created_at) { + t.time = new Date(msg.created_at).toLocaleTimeString().replace(/:\d+$/,'');; } if (real && dummy) { diff --git a/twittperator/twsidebar/chrome/content/twsidebar.css b/twittperator/twsidebar/chrome/content/twsidebar.css index 72755a4..3801f99 100644 --- a/twittperator/twsidebar/chrome/content/twsidebar.css +++ b/twittperator/twsidebar/chrome/content/twsidebar.css @@ -57,11 +57,16 @@ font-weight: bold; } +.tw-anekos-sb-plugin-item-text { + word-break: break-all; +} + .tw-anekos-sb-plugin-item-sub { + background-color: pink; font-size: 80%; } -.tw-anekos-sb-plugin-item-text { - word-break: break-all; +.tw-anekos-sb-plugin-item-time { + font-size: 80%; } -- cgit v1.2.3 From 334c1ad154d3edfb27eba18c583cf4fc40f6cd08 Mon Sep 17 00:00:00 2001 From: anekos Date: Sun, 20 Jan 2013 22:25:29 +0900 Subject: 以前の名前横の表示を選択可能にした。 以前のようにする方法 :style -name tw-sidebar-hidden-time chrome://* < - + + {escapeBreakers(t.text)} - - + + + + ; diff --git a/twittperator/twsidebar/chrome/content/twsidebar.css b/twittperator/twsidebar/chrome/content/twsidebar.css index 3801f99..e431b3b 100644 --- a/twittperator/twsidebar/chrome/content/twsidebar.css +++ b/twittperator/twsidebar/chrome/content/twsidebar.css @@ -70,3 +70,8 @@ font-size: 80%; } +.tw-anekos-sb-plugin-item-time-and-sub { + font-size: 80%; + display: none; +} + -- cgit v1.2.3 From 6920a58523ac71619d953fcfc4bad8ac96703870 Mon Sep 17 00:00:00 2001 From: anekos Date: Mon, 21 Jan 2013 22:06:42 +0900 Subject: Add -c option for :fo --- lo.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/lo.js b/lo.js index 1159a3b..9b08e7d 100644 --- a/lo.js +++ b/lo.js @@ -39,7 +39,7 @@ let PLUGIN_INFO = Link Opener Link Opener リンクを開く - 2.3.2 + 2.4.0 anekos new BSD License (Please read the source code comments of this plugin) 修正BSDライセンス (ソースコードのコメントを参照してください) @@ -54,7 +54,7 @@ let PLUGIN_INFO = // INFO {{{ let INFO = <> - - tr > td > a[href^="http://rd.yahoo.co.jp"]'); + let a = doc.querySelector('tbody.yjM > tr > td > a[href^="http://rdsig.yahoo.co.jp"]'); if (a) { let tr = a.parentNode.parentNode; liberator.__tr = tr; -- cgit v1.2.3 From 17d4912238d182064764be51923f8b9e2ef9c450 Mon Sep 17 00:00:00 2001 From: Yuya YAGUCHI Date: Tue, 5 Mar 2013 16:52:04 +0900 Subject: Modified Twitter API version --- twittperator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twittperator.js b/twittperator.js index 0da88e8..73b4a1c 100644 --- a/twittperator.js +++ b/twittperator.js @@ -2659,7 +2659,7 @@ let INFO = proxyPort: gv.twittperator_proxy_port, screenName: gv.twittperator_screen_name, apiURLBase: "http" + (!!gv.twittperator_use_ssl_connection_for_api_ep ? "s" : "") + - "://api.twitter.com/" + (gv.twittperator_twitter_api_version || 1) + "/", + "://api.twitter.com/" + (gv.twittperator_twitter_api_version || "1.1") + "/", trackWords: gv.twittperator_track_words, count: (gv.twittperator_count || 20), lang: (gv.twittperator_lang || ''), -- cgit v1.2.3 From 28acea7b5963ce926c2a813a4f2e7b75904dd94c Mon Sep 17 00:00:00 2001 From: anekos Date: Mon, 11 Mar 2013 22:11:22 +0900 Subject: Follow yahoo changes --- umihara.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umihara.js b/umihara.js index 5c1fc36..fc8f946 100644 --- a/umihara.js +++ b/umihara.js @@ -156,7 +156,7 @@ let PLUGIN_INFO = if (req.readyState == 4 && req.status == 200) { let html = req.responseText; let doc = plugins.libly.$U.createHTMLDocument(html); - let a = doc.querySelector('tbody.yjM > tr > td > a[href^="http://rdsig.yahoo.co.jp"]'); + let a = doc.querySelector('tbody.yjM > tr > td > a[href^="http://stocks.finance.yahoo.co.jp"]'); if (a) { let tr = a.parentNode.parentNode; liberator.__tr = tr; -- cgit v1.2.3 From 0bc1bf18ea748898f23eab2144581868bc31be0d Mon Sep 17 00:00:00 2001 From: anekos Date: Mon, 11 Mar 2013 22:12:44 +0900 Subject: Teketoh fix --- zip-de-download.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zip-de-download.js b/zip-de-download.js index 9e0de28..a111958 100644 --- a/zip-de-download.js +++ b/zip-de-download.js @@ -350,6 +350,8 @@ let SITE_INFO = [ completer: liberator.modules.completion.file }, true); - util.extend(__context__, self); + for (let [k, v] in Iterator(self)) { + __context__[k] = v; + } })(); // vim: sw=2 ts=2 et: -- cgit v1.2.3 From e1f90b9e6073c4d2235202522c0ad12809423ee7 Mon Sep 17 00:00:00 2001 From: anekos Date: Fri, 15 Mar 2013 23:20:30 +0900 Subject: Twitter API 1.1 に対応なの? --- twittperator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twittperator.js b/twittperator.js index 73b4a1c..914f3bf 100644 --- a/twittperator.js +++ b/twittperator.js @@ -2049,7 +2049,7 @@ let INFO = liberator.echo(html, true); }, // }}} showTwitterMentions: function(arg) { // {{{ - tw.jsonGet("statuses/mentions", null, function(res) { + tw.jsonGet("statuses/mentions_timeline", null, function(res) { Twittperator.showTL(res.map(Utils.fixStatusObject)); }); }, // }}} -- cgit v1.2.3 From 263de388a4395cf5afd63c950b6f64a126162632 Mon Sep 17 00:00:00 2001 From: anekos Date: Fri, 15 Mar 2013 23:41:51 +0900 Subject: Twitter API 1.1 対応じゃねーの? --- twittperator.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/twittperator.js b/twittperator.js index 914f3bf..1173693 100644 --- a/twittperator.js +++ b/twittperator.js @@ -2,7 +2,7 @@ * The MIT License * * Copyright (c) 2010 teramako - * Copyright (c) 2010-2012 anekos + * Copyright (c) 2010-2013 anekos * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -26,7 +26,7 @@ // INFO {{{ let INFO = <> - teramako @@ -175,7 +175,7 @@ let INFO = Write the plugin.

- @@ -1643,7 +1643,7 @@ let INFO = }); }, // }}} favorite: function(id) { // {{{ - tw.jsonPost("favorites/create/" + id, null, function(res) { + tw.jsonPost("favorites/create", {id: id}, function(res) { res = Utils.fixStatusObject(res); Twittperator.echo("fav: " + res.user.name + " " + res.text) }); -- cgit v1.2.3 From d05b5db5536c47d8ce82951b36b88b1b6f23cf36 Mon Sep 17 00:00:00 2001 From: retlet Date: Fri, 29 Mar 2013 23:14:33 +0900 Subject: :[tab]open foo/bar がURLとして認識されないように --- prevent-pseudo-domain.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prevent-pseudo-domain.js b/prevent-pseudo-domain.js index 7981874..0e4124c 100644 --- a/prevent-pseudo-domain.js +++ b/prevent-pseudo-domain.js @@ -5,7 +5,7 @@ } function isWord (s) { - return /^[^\s\.]+$/i.test(s); + return /^[^\s\.\/]+$/i.test(s); } function isIPAddress (s) { -- cgit v1.2.3 From 9cad8eb6037eb0fb25594455321c3d713525f5b9 Mon Sep 17 00:00:00 2001 From: Jothiram Selvam Date: Mon, 1 Apr 2013 15:45:22 +0200 Subject: Added README.md --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..4aedba0 --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# Vimperator Plugins + +This is a set of plugins that will work with Vimperator + +While Vimperator offers already lots of cool features, we cannot and don't want to include every feature directly in the core. Therefore you can enhance the Vimperator experience by adding plugins which add new commands or mappings. Install these plugins by copying them to the ~/.vimperator/plugin/ directory (or %HOME%\vimperator\plugin on Windows) unless noted differently. + +Note: This is valid only for versions Firefox 19.* and lower. + +### feedSomeKeys_3.js + +You can add similar commands to your .vimperatorrc file + +:command! -nargs=+ lazy autocmd VimperatorEnter .* <args> +:lazy fmaps -u='mail\.google\.com/mail' c / j k n p o u e x s r a # [ ] ? gi gs gt gd ga gc +:lazy fmaps -u='mail\.google\.com/mail/.*/[0-9a-f]+$' c / j,n k,p n,j p,k o u e x s r a # [ ] ? gi gs gt gd ga gc +:lazy fmaps -u='www\.google\.co\.jp/reader' -events=vkeypress j k n p m s v A r S N P X O gh ga gs gt gu u / ? J K +:lazy fmaps -u='(fastladder|livedoor)\.com/reader' j k s a p o v c i,p <Space> <S-Space> z b < > q w e,g +:lazy fmaps -u='https?://www\.rememberthemilk\.com/home/' j k m i c t ? d F,f G,g S,s L,l Y,y H,h M,m <Del> <C-S-Left> <C-S-Right> +:lazy fmaps -u='http://code.google.com/p/vimperator-labs/issues/list' o j k +:lazy fmaps -u='http://code.google.com/p/vimperator-labs/issues/detail' u + +Note: If you are planning to add them via command line, then remove the "lazy" + + -- cgit v1.2.3 From ec98b5d78df18482cabb59fea1b9b4b98f9ed060 Mon Sep 17 00:00:00 2001 From: Jothiram Selvam Date: Mon, 1 Apr 2013 15:53:23 +0200 Subject: Updated README --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4aedba0..73cc3b6 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,16 @@ This is a set of plugins that will work with Vimperator While Vimperator offers already lots of cool features, we cannot and don't want to include every feature directly in the core. Therefore you can enhance the Vimperator experience by adding plugins which add new commands or mappings. Install these plugins by copying them to the ~/.vimperator/plugin/ directory (or %HOME%\vimperator\plugin on Windows) unless noted differently. -Note: This is valid only for versions Firefox 19.* and lower. +> ###### Note: Master is valid only for versions Firefox 19.* and lower. +> ##### For versions Firefox 20.* and higher, please check the branch 3.6 [here](https://github.com/vimpr/vimperator-plugins/tree/3.6) +## Plugins ### feedSomeKeys_3.js -You can add similar commands to your .vimperatorrc file +You can add the following commands to your .vimperatorrc file + +``` :command! -nargs=+ lazy autocmd VimperatorEnter .* <args> :lazy fmaps -u='mail\.google\.com/mail' c / j k n p o u e x s r a # [ ] ? gi gs gt gd ga gc :lazy fmaps -u='mail\.google\.com/mail/.*/[0-9a-f]+$' c / j,n k,p n,j p,k o u e x s r a # [ ] ? gi gs gt gd ga gc @@ -18,7 +22,8 @@ You can add similar commands to your .vimperatorrc file :lazy fmaps -u='https?://www\.rememberthemilk\.com/home/' j k m i c t ? d F,f G,g S,s L,l Y,y H,h M,m <Del> <C-S-Left> <C-S-Right> :lazy fmaps -u='http://code.google.com/p/vimperator-labs/issues/list' o j k :lazy fmaps -u='http://code.google.com/p/vimperator-labs/issues/detail' u +``` -Note: If you are planning to add them via command line, then remove the "lazy" +> Note: If you are planning to add them via command line, then remove the "lazy" -- cgit v1.2.3