window.exports = {
'hello': {
mode: 'list',
args: {
enter: async (action) => {
const res = await utools.ubrowser.goto('https://yuanliao.info')
.wait('button[title=退出]')
.cookies('flarum_session')
.run({ width: 1000, height: 800 })
console.log(res);
utools.ubrowser.hide()
utools.clearUBrowserCache()
utools.dbStorage.setItem('token', res[0].value)
}
}
}}