aboutsummaryrefslogtreecommitdiffstats
path: root/notifier
diff options
context:
space:
mode:
authordrry2008-12-22 09:01:57 +0000
committerdrry2008-12-22 09:01:57 +0000
commit363a66408611d27b8b0f22e1d8226b86dbfb9ffc (patch)
tree04c064178971ebd5d91af71aedd018b488a37405 /notifier
parentf9dc40f9a3e34ede7f40b7137576243d3dff06f6 (diff)
downloadvimperator-plugins-363a66408611d27b8b0f22e1d8226b86dbfb9ffc.tar.bz2
* XPath を修正しました。
* ほか。 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@27220 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'notifier')
-rw-r--r--notifier/observer_growl.js4
-rwxr-xr-xnotifier/subject_weather_yahoo.js8
2 files changed, 6 insertions, 6 deletions
diff --git a/notifier/observer_growl.js b/notifier/observer_growl.js
index f257230..4a737f3 100644
--- a/notifier/observer_growl.js
+++ b/notifier/observer_growl.js
@@ -157,7 +157,7 @@ notifier.observer.register(notifier.Observer, {
let item = container.childNodes[i];
let growl = item.__data__;
if (force ||
- (growl && growl.created && !growl.options.sticky &&
+ (growl && !growl.options.sticky && growl.created &&
growl.created.getTime() + (growl.options.life * 1000) < (new Date()).getTime())) {
if (item.id != 'observer_growl_closer')
removeNodes.push(item);
@@ -187,7 +187,7 @@ notifier.observer.register(notifier.Observer, {
if (!flg) return;
clearInterval(id);
this.intervalIDs[id] = false;
- };
+ }
}
});
diff --git a/notifier/subject_weather_yahoo.js b/notifier/subject_weather_yahoo.js
index 648cc4f..891ff27 100755
--- a/notifier/subject_weather_yahoo.js
+++ b/notifier/subject_weather_yahoo.js
@@ -2,8 +2,8 @@
var PLUGIN_INFO =
<VimperatorPlugin>
<name>{NAME}</name>
- <description>yahoo weather forecast notice.</description>
- <description lang="ja">ヤフー天気予報通知。</description>
+ <description>Yahoo! Weather forecast notice.</description>
+ <description lang="ja">Yahoo!天気予報通知。</description>
<author mail="suvene@zeromemory.info" homepage="http://zeromemory.sblo.jp/">suVene</author>
<version>0.1.2</version>
<minVersion>2.0pre</minVersion>
@@ -12,7 +12,7 @@ var PLUGIN_INFO =
<detail><![CDATA[
== Options ==
>||
-liberator.globalVariables.subject_weather_yahoo_urls = [url1, url2,…]
+liberator.globalVariables.subject_weather_yahoo_urls = [url1, url2,…]
||<
- @see http://weather.yahoo.co.jp/weather/
]]></detail>
@@ -42,7 +42,7 @@ URLs.forEach(function(url) {
},
parse: function(res) {
var parsed = res.getHTMLDocument(
- 'id("cat-pass") | id("yjw_pinpoint_today") | id("yjw_pinpoint_tomorrow")'
+ 'id("cat-pass yjw_pinpoint_today yjw_pinpoint_tomorrow")'
);
if (!parsed.length) return;