Skip to content
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
Closed

can you use chrome extension with electron? #1498

whatsdis opened this issue Apr 27, 2015 · 19 comments

Comments

@whatsdis
Copy link

@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?

@JoshTheDerf
Copy link
Contributor

@JoshTheDerf JoshTheDerf 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
Copy link
Member

@zcbenz zcbenz commented Apr 28, 2015

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

@ungerik
Copy link

@ungerik ungerik commented Oct 30, 2015

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

@anaisbetts
Copy link
Contributor

@anaisbetts anaisbetts commented Oct 30, 2015

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

@thomasdarimont
Copy link

@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
Copy link

@ThorstenHans 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

@JoshTheDerf
Copy link
Contributor

@JoshTheDerf JoshTheDerf commented Jul 2, 2016

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

@ThorstenHans
Copy link

@ThorstenHans 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
Copy link

@tomasro27 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
Copy link
Member

@MarshallOfSound 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
Copy link

@tomasro27 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
Copy link

@AndyNormore 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
Copy link

@bugdanov bugdanov commented Apr 29, 2017

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

@Arti3DPlayer
Copy link

@Arti3DPlayer Arti3DPlayer commented Jun 19, 2017

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

@alexstrat
Copy link
Contributor

@alexstrat 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
Copy link

@sferoze 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
Copy link

@bianxg 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
Copy link

@liguanpei liguanpei commented Mar 22, 2018

@bianxg Have you fixed the issue?

@bianxg
Copy link

@bianxg 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.