nl_tokens: 自定义扩展函数： 获得视窗大小
pl_tokens: function addExtendSize ( Nightmare , opts ) { Nightmare . action ( 'size' , function ( done ) { console . log ( 'size opts' , opts ) ; this . evaluate_now ( ( ) => { const w = Math . max ( document . documentElement . clientWidth , window . innerWidth || 0 ) ; const h = Math . max ( document . documentElement . clientHeight , window . innerHeight || 0 ) ; return { height : h , <mask> : w } ; } , done ) ; } ) ; }