How to download a CRX file from the Chrome web store for a given ID? [closed]

The CRX file itself can be directly downloaded from https://clients2.google.com/service/update2/crx?response=redirect&prodversion=[PRODVERSION]&acceptformat=crx2,crx3&x=id%3D[EXTENSIONID]%26uc [PRODVERSION] is the version of Chrome, which must be 31.0.1609.0 at the very least, and [EXTENSIONID] is the ID of the extension (New in 2018) acceptformat=crx2,crx3 instructs the server to also respond with extensions in the CRX3 format (instead of 204 No Content when the … Read more

Content script matching top-level domains like all google.*

Listing all Google domains is not that difficult, because Google has published a list of all public Google domains at http://www.google.com/supported_domains. Prefix every item in this list with “*://* and add the “, suffix to every item. Then copy-paste the result to your manifest file. An alternative option is to use the “include_globs” field (this … Read more

Using ECMAScript 6

In Chrome, most of the ES6 features are hidden behind a flag called “Experimental JavaScript features”. Visit chrome://flags/#enable-javascript-harmony, enable this flag, restart Chrome and you will get many new features. Arrow functions are not yet implemented in V8/Chrome, so this flag won’t “unlock” arrow functions. Since arrow functions are a syntax change, it is not … Read more

Chrome DevTools Devices does not detect device when plugged in

To get the functionality up and running: Follow steps at https://developers.google.com/chrome-developer-tools/docs/remote-debugging Install Windows USB driver http://developer.samsung.com/android/tools-sdks/Samsung-Android-USB-Driver-for-Windows Install Android SDK http://developer.android.com/sdk/index.html Install Android SDK Platform-tools http://developer.android.com/sdk/installing/adding-packages.html (this step was blocked on corporate wifi so I installed the single ADB package it required https://forum.xda-developers.com/showthread.php?t=2317790) Use command prompt to run ADB, in cmd go to the install directory … Read more

Chrome CORS error on request to localhost dev server from remote site

Original Answer I finally found the answer, in this RFC about CORS-RFC1918 from a Chrome-team member. To sum it up, Chrome has implemented CORS-RFC1918, which prevents public network resources from requesting private-network resources – unless the public-network resource is secure (HTTPS) and the private-network resource provides appropriate (yet-undefined) CORS headers. There’s also a Chrome flag … Read more

Is it possible to run Google Chrome in headless mode with extensions?

You can run Chrome with extensions headless using Xvfb. Install Xvfb. On Fedora sudo dnf install xorg-x11-server-Xvfb xvfb-run google-chrome –remote-debugging-port=9222 –disable-gpu https://www.google.com Use chrome-remote-interface (or another Chrome Debug Protocol client) to trigger the screenshot. More complicated, but it does work. It’s what we use for headless chrome extension testing.