Changeset 27578

Show
Ignore:
Timestamp:
12/30/08 01:23:43 (4 years ago)
Author:
hogelog
Message:
  • add example.
  • fix bug.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/vimperator-plugins/trunk/scenario-actor.js

    r27573 r27578  
    55    <description>browser act scenario semi-automatic.</description> 
    66    <author mail="konbu.komuro@gmail.com" homepage="http://d.hatena.ne.jp/hogelog/">hogelog</author> 
    7     <version>0.0.4</version> 
     7    <version>0.0.5</version> 
    88    <minVersion>2.0a2</minVersion> 
    99    <updateURL>http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/scenario-actor.js</updateURL> 
     
    3434            {sleep: 5000}, 
    3535            {follow: '//a[@rel="prev"]'}, 
     36        ]} 
     37    }, 
     38    { // recent vector site is confusing 
     39        pattern: 'http://www.vector.co.jp/soft/', 
     40        action: {or: [ 
     41            {follow: ['//a[not(contains(@href,"http")) and contains(@href,"/soft/dl/")]', liberator.NEW_TAB]}, 
     42            {follow: '//a[not(contains(@href,"http")) and contains(@href,"/download/file/")]'}, 
    3643        ]} 
    3744    }, 
     
    193200                        for(sym in exp) { 
    194201                            let args = exp[sym]; 
    195                             if(debug) liberator.log("eval: "+sym+"("+args+")"); 
     202                            if(debugMode) liberator.log("eval: "+sym+"("+args+")"); 
    196203                            if(args instanceof Array) { 
    197204                                return this[sym].apply(this, args);