How install crx Chrome extension via command line?

For unpacked extensions, you can run with the command line flag: <path to chrome> –load-extension=<path to extension directory> For installing a packaged extension in a .crx file, you can use the “external extensions” mechanism to automatically install from either an autoupdate url or a local path: https://developer.chrome.com/extensions/external_extensions Two things of note: -Because this mechanism is …

Read more

Chrome extensions: Use the “background.service_worker” key instead manifest_version 3

Manifest V3 no longer supports background pages. Instead it now supports a new feature called service workers. The key background in your manifest.json can no longer contain the field persistent, and also update the value from scripts to service_worker. Service worker cannot contain an array but can only contain a single string value. Eg: { …

Read more

How to trigger an on scroll event without scrolling

Alternatively, you can manually trigger a real scroll event as following: el.dispatchEvent(new CustomEvent(‘scroll’)) Which feels a bit less of a hack (and more performant) than dual scrolling by +1 and -1 pixels… This should run any piece of code listening for a scroll event. Edit: To support IE11 or other legacy browser, consider using a …

Read more