aboutsummaryrefslogtreecommitdiffstats
path: root/scenario-actor.js
diff options
context:
space:
mode:
authorhogelog2008-12-29 16:23:43 +0000
committerhogelog2008-12-29 16:23:43 +0000
commitc4ecce95964d7e43ed673367c596fb77a0d99c4c (patch)
treed4069498bb41648413077b5a083189e318ff6714 /scenario-actor.js
parentfbcdd4569930492b55072bb03172dfeded7bad44 (diff)
downloadvimperator-plugins-c4ecce95964d7e43ed673367c596fb77a0d99c4c.tar.bz2
* add example.
* fix bug. git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@27578 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'scenario-actor.js')
-rw-r--r--scenario-actor.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/scenario-actor.js b/scenario-actor.js
index 48faa10..df042ed 100644
--- a/scenario-actor.js
+++ b/scenario-actor.js
@@ -4,7 +4,7 @@ var PLUGIN_INFO =
<name>{NAME}</name>
<description>browser act scenario semi-automatic.</description>
<author mail="konbu.komuro@gmail.com" homepage="http://d.hatena.ne.jp/hogelog/">hogelog</author>
- <version>0.0.4</version>
+ <version>0.0.5</version>
<minVersion>2.0a2</minVersion>
<updateURL>http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/scenario-actor.js</updateURL>
<detail><![CDATA[
@@ -35,6 +35,13 @@ liberator.globalVariables.userScenarioList = {
{follow: '//a[@rel="prev"]'},
]}
},
+ { // recent vector site is confusing
+ pattern: 'http://www.vector.co.jp/soft/',
+ action: {or: [
+ {follow: ['//a[not(contains(@href,"http")) and contains(@href,"/soft/dl/")]', liberator.NEW_TAB]},
+ {follow: '//a[not(contains(@href,"http")) and contains(@href,"/download/file/")]'},
+ ]}
+ },
],
load: [
{ // auto hatena star
@@ -192,7 +199,7 @@ function ScenarioActor () { //{{{
case 'object':
for(sym in exp) {
let args = exp[sym];
- if(debug) liberator.log("eval: "+sym+"("+args+")");
+ if(debugMode) liberator.log("eval: "+sym+"("+args+")");
if(args instanceof Array) {
return this[sym].apply(this, args);
} else {