diff options
| -rw-r--r-- | scenario-actor.js | 11 | 
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 { | 
