aboutsummaryrefslogtreecommitdiffstats
path: root/notifier/subject_weather_yahoo.js
diff options
context:
space:
mode:
authorsuVene2008-12-18 17:27:37 +0000
committersuVene2008-12-18 17:27:37 +0000
commit7e2df6a0694f18c9569744d5707045fbc934f0c1 (patch)
treea9a68631640739558845577bf9b60f5150501e60 /notifier/subject_weather_yahoo.js
parentc3edf91140e9f8bef88bc2375f0cea4f2a753541 (diff)
downloadvimperator-plugins-7e2df6a0694f18c9569744d5707045fbc934f0c1.tar.bz2
* observer_growl. EventListener の登録失敗回避.[close all]追加.
* subject_weather_yahoo.js url の設定読込み. * growl.css className modify. git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@27040 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'notifier/subject_weather_yahoo.js')
-rwxr-xr-xnotifier/subject_weather_yahoo.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/notifier/subject_weather_yahoo.js b/notifier/subject_weather_yahoo.js
index 96f23d0..0445bed 100755
--- a/notifier/subject_weather_yahoo.js
+++ b/notifier/subject_weather_yahoo.js
@@ -5,9 +5,16 @@ var PLUGIN_INFO =
<description>yahoo weather forecast notice.</description>
<description lang="ja">ヤフー天気予報通知。</description>
<author mail="suvene@zeromemory.info" homepage="http://zeromemory.sblo.jp/">suVene</author>
- <version>0.1.0</version>
+ <version>0.1.1</version>
<minVersion>2.0pre</minVersion>
<maxVersion>2.0pre</maxVersion>
+ <detail><![CDATA[
+== Options ==
+>||
+liberator.globalVariables.subject_weather_yahoo_urls = [url1, url2,…]
+||<
+- @see http://weather.yahoo.co.jp/weather/
+ ]]></detail>
</VimperatorPlugin>;
//}}}
(function() {
@@ -19,8 +26,7 @@ var libly = notifier.libly;
var $U = libly.$U;
var logger = $U.getLogger('subject_weather_yahoo');
-// @see http://weather.yahoo.co.jp/weather/
-var URLs = [
+var URLs = liberator.globalVariables.subject_weather_yahoo_urls || [
'http://weather.yahoo.co.jp/weather/jp/27/6200/27127/5300001.html',
'http://weather.yahoo.co.jp/weather/jp/13/4410/13113/1500001.html'
];
@@ -55,6 +61,7 @@ URLs.forEach(function(url) {
var table = $U.getFirstNodeFromXPath('descendant::table', source);
table.style.width = '95%';
+ table.style.color = '#222';
var cloneTable = table.cloneNode(false);
this.cloneTable(cloneTable, table, start, start + 3, true);