This is a plugin for Google Lighthouse. The plugin's sole purpose is to identify captcha scripts found on page load.
To identify whether certain web pages have captcha scripts which interfere with Lighthouse performance audits. Doing automated Lighthouse testing on a sample of websites I noticed some sites had suspiciously high scores. I tested the suspicious sites with Lighthouse manually and observed a Captcha page was being loaded instead of the actual content for the url given. I suspect this may be due to running Chrome in incognito mode while testing but have not confirmed. Repo
Requires Node.js 10+ and Lighthouse 5+.
$ npm install lighthouse-plugin-has-captcha-on-page-loadUse the plugin with Lighthouse CLI or Node.js.
Pass plugin to Lighthouse:
$ lighthouse https://www.github.com/ --plugins=lighthouse-plugin-has-captcha-on-page-loadconst { lighthouse } = require('lighthouse');
lighthouse('https://www.github.com', {
plugins: ['lighthouse-plugin-has-captcha-on-page-load']
}).then(result => {
console.log(result);
});