New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can you use chrome extension with electron? #1498

Closed
whatsdis opened this Issue Apr 27, 2015 · 19 comments

Comments

Projects
None yet
@whatsdis

whatsdis commented Apr 27, 2015

nw.js is slowly supporting chrome extension api like cookies, storage, etc.

can you do the same with electron?

@Tribex

This comment has been minimized.

Show comment
Hide comment
@Tribex

Tribex Apr 27, 2015

Contributor

@whatsdis Could you elaborate a bit? As far as I know, nw.js doesn't support chrome extension APIs, though they do have some similar APIs.

That being said, electron doesn't support chrome extensions out of the box, though it might be possible write a semi-compatible environment and API set.

Contributor

Tribex commented Apr 27, 2015

@whatsdis Could you elaborate a bit? As far as I know, nw.js doesn't support chrome extension APIs, though they do have some similar APIs.

That being said, electron doesn't support chrome extensions out of the box, though it might be possible write a semi-compatible environment and API set.

@zcbenz

This comment has been minimized.

Show comment
Hide comment
@zcbenz

zcbenz Apr 28, 2015

Contributor

We don't have any plan to support Chrome extension APIs.

Contributor

zcbenz commented Apr 28, 2015

We don't have any plan to support Chrome extension APIs.

@ungerik

This comment has been minimized.

Show comment
Hide comment
@ungerik

ungerik Oct 30, 2015

What about APIs like chrome.sockets, chrome.serial, chrome.bluetooth?

ungerik commented Oct 30, 2015

What about APIs like chrome.sockets, chrome.serial, chrome.bluetooth?

@paulcbetts

This comment has been minimized.

Show comment
Hide comment
@paulcbetts

paulcbetts Oct 30, 2015

Contributor

@ungerik You can do most of these things via node modules, though the API is probably a bit different

Contributor

paulcbetts commented Oct 30, 2015

@ungerik You can do most of these things via node modules, though the API is probably a bit different

@thomasdarimont

This comment has been minimized.

Show comment
Hide comment
@thomasdarimont

thomasdarimont commented Jul 2, 2016

Seems to be possible now via BrowserWindow.addDevToolsExtension

See:
BrowserWindow.addDevToolsExtension
Using Augury chrome extension inside of your Electron Apps

@ThorstenHans

This comment has been minimized.

Show comment
Hide comment
@ThorstenHans

ThorstenHans Jul 2, 2016

Yeah as @thomasdarimont pointed out it's possible. I wrote that dedicated article in addition to the official electron docs right here because you've to ensure that you're using the path to the folder containing the mainfest.json file.

It's also important to know that this will only work if the used extension is installed on the system actually running the app

ThorstenHans commented Jul 2, 2016

Yeah as @thomasdarimont pointed out it's possible. I wrote that dedicated article in addition to the official electron docs right here because you've to ensure that you're using the path to the folder containing the mainfest.json file.

It's also important to know that this will only work if the used extension is installed on the system actually running the app

@Tribex

This comment has been minimized.

Show comment
Hide comment
@Tribex

Tribex Jul 2, 2016

Contributor

Isn't there a difference between DevTools extensions and Chrome Extensions?

Contributor

Tribex commented Jul 2, 2016

Isn't there a difference between DevTools extensions and Chrome Extensions?

@ThorstenHans

This comment has been minimized.

Show comment
Hide comment
@ThorstenHans

ThorstenHans Jul 2, 2016

@Tribex it depends. For the extension I've mentioned above, Augury. It's an regular Chrome Extensions integrating into the chrome dev tools. for regular extensions integrating in the app to empower the user, I dont know at the moment. Don't think this is possible because chromium comes without direct access to Chrome Web Store. So my article was covering the developer side.

ThorstenHans commented Jul 2, 2016

@Tribex it depends. For the extension I've mentioned above, Augury. It's an regular Chrome Extensions integrating into the chrome dev tools. for regular extensions integrating in the app to empower the user, I dont know at the moment. Don't think this is possible because chromium comes without direct access to Chrome Web Store. So my article was covering the developer side.

@tomasro27

This comment has been minimized.

Show comment
Hide comment
@tomasro27

tomasro27 Oct 18, 2016

@ThorstenHans
I followed the guide, and electron opens correctly but the tab is not there. I can't see any errors, or indications that something wrong happened. I followed everything exactly. Downloaded directly from chrome, added path correctly. I'm using electron 0.37.6

tomasro27 commented Oct 18, 2016

@ThorstenHans
I followed the guide, and electron opens correctly but the tab is not there. I can't see any errors, or indications that something wrong happened. I followed everything exactly. Downloaded directly from chrome, added path correctly. I'm using electron 0.37.6

@MarshallOfSound

This comment has been minimized.

Show comment
Hide comment
@MarshallOfSound

MarshallOfSound Oct 18, 2016

Member

I'm using electron 0.37.6

That is far too old to use most Chrome DevTools Extensions. You probably need to update to at least 1.2.x+

Member

MarshallOfSound commented Oct 18, 2016

I'm using electron 0.37.6

That is far too old to use most Chrome DevTools Extensions. You probably need to update to at least 1.2.x+

@tomasro27

This comment has been minimized.

Show comment
Hide comment
@tomasro27

tomasro27 Oct 18, 2016

@MarshallOfSound thanks for the reply. I assumed there was a chance for it to work since the API call is there. But good to know. I'll have to wait to update electron version then

tomasro27 commented Oct 18, 2016

@MarshallOfSound thanks for the reply. I assumed there was a chance for it to work since the API call is there. But good to know. I'll have to wait to update electron version then

@AndyNormore

This comment has been minimized.

Show comment
Hide comment
@AndyNormore

AndyNormore Jan 6, 2017

This is still an issue in 2016. I have a website at www.SkyRooms.IO that uses an extension to do screen capturing with WebRTC. This feature is not available to my desktop users now. What should I do?

AndyNormore commented Jan 6, 2017

This is still an issue in 2016. I have a website at www.SkyRooms.IO that uses an extension to do screen capturing with WebRTC. This feature is not available to my desktop users now. What should I do?

@bugdanov

This comment has been minimized.

Show comment
Hide comment
@bugdanov

bugdanov Apr 29, 2017

What about Google Input Tools (ie: handwriting support for asian languages ?...)

bugdanov commented Apr 29, 2017

What about Google Input Tools (ie: handwriting support for asian languages ?...)

@Arti3DPlayer

This comment has been minimized.

Show comment
Hide comment
@Arti3DPlayer

Arti3DPlayer Jun 19, 2017

chrome usb is super important :( Other usb libs have a lot of crossplatform issues

Arti3DPlayer commented Jun 19, 2017

chrome usb is super important :( Other usb libs have a lot of crossplatform issues

@alexstrat

This comment has been minimized.

Show comment
Hide comment
@alexstrat

alexstrat Jul 6, 2017

Contributor

I listed there all the Electron related blockers I faced so far trying to load 2 popular Chrome extensions (Mailtracker and Grammarly) in Electron. I added references to electron's issue or PR.

Contributor

alexstrat commented Jul 6, 2017

I listed there all the Electron related blockers I faced so far trying to load 2 popular Chrome extensions (Mailtracker and Grammarly) in Electron. I added references to electron's issue or PR.

@sferoze

This comment has been minimized.

Show comment
Hide comment
@sferoze

sferoze Dec 26, 2017

@alexstrat I checked that list of blockers you made and it looks like most of them are fixed...

So is the Grammarly plugin working right now in your electron app? If so can you point me in the right direction of how I can add it to my app? It seems rather complication....

sferoze commented Dec 26, 2017

@alexstrat I checked that list of blockers you made and it looks like most of them are fixed...

So is the Grammarly plugin working right now in your electron app? If so can you point me in the right direction of how I can add it to my app? It seems rather complication....

@bianxg

This comment has been minimized.

Show comment
Hide comment
@bianxg

bianxg Mar 7, 2018

@AndyNormore Have you fixed the issue? I meet the same one.

The error information is as below:
E:\project\Electron\electron-v1.8.3-win32-x64>electron.exe
Installed chrome extensions:
{ 'Screen Capturing': { name: 'Screen Capturing', version: '3.4' } }
[14064:0307/185014.973:ERROR:CONSOLE(7278)] "Skipping extension with invalid URL: chrome-extension://screen-capturing",
source: chrome-devtools://devtools/bundled/inspector.js (7278)

bianxg commented Mar 7, 2018

@AndyNormore Have you fixed the issue? I meet the same one.

The error information is as below:
E:\project\Electron\electron-v1.8.3-win32-x64>electron.exe
Installed chrome extensions:
{ 'Screen Capturing': { name: 'Screen Capturing', version: '3.4' } }
[14064:0307/185014.973:ERROR:CONSOLE(7278)] "Skipping extension with invalid URL: chrome-extension://screen-capturing",
source: chrome-devtools://devtools/bundled/inspector.js (7278)

@liguanpei

This comment has been minimized.

Show comment
Hide comment
@liguanpei

liguanpei Mar 22, 2018

@bianxg Have you fixed the issue?

liguanpei commented Mar 22, 2018

@bianxg Have you fixed the issue?

@bianxg

This comment has been minimized.

Show comment
Hide comment
@bianxg

bianxg Mar 22, 2018

@liguanpei I give up to use chrome extension. I use desktop-capture api instead to desktop share.
https://electronjs.org/docs/api/desktop-capturer

bianxg commented Mar 22, 2018

@liguanpei I give up to use chrome extension. I use desktop-capture api instead to desktop share.
https://electronjs.org/docs/api/desktop-capturer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment