treosh / exthouse

Analyze the impact of a browser extension on web performance.
MIT License
409 stars 9 forks source link

custom login script #22

Open alekseykulikov opened 5 years ago

alekseykulikov commented 5 years ago

Add support for custom login script to evaluate extensions requiring authentication (more than 50% of all extensions).

Solution

Puppeteer powers Exthouse and allows us to get an extension page. A custom script could do some extra steps to finish the authentication and extension install.

Possible API

login.js

exports.handler = async (extension, page) => {
  // perform steps for login
}

Use the login script:

exthouse my-ext.crx --require=login.js