Skip to content
New issue

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

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

Already on GitHub? # to your account

Extensions are disabled when running Chrome in Sharedown #75

Open
mikhail-ict opened this issue Sep 29, 2023 · 6 comments
Open

Extensions are disabled when running Chrome in Sharedown #75

mikhail-ict opened this issue Sep 29, 2023 · 6 comments

Comments

@mikhail-ict
Copy link

When the only way to login is having the following Chrome extension installed: https://chrome.google.com/webstore/detail/windows-accounts/ppnbnpeolgkicgegkbkbjmhlideopiji

Since Sharedown launches Chrome (Built-in or external) with no extensions enabled – how to have it run with that specific extension being on?

Thank you.

@kylon
Copy link
Owner

kylon commented Sep 29, 2023

this is tricky
according to docs you can load unpacked extensions
so using this to get the crx or chrome itself, i think, and unpack it (it is a zip file)

then doing this in preload.js
Screenshot_20230929_140838

@mikhail-ict
Copy link
Author

mikhail-ict commented Sep 29, 2023

I actually tried doing this through GUI in Chrome by turning on the Dev mode in Extensions and then pointing to the unpacked location of the extension, but it did not work for me...

I have the Windows version installed with sharedown.Setup.5.3.2.exe... I can't find preload.js file anywhere.

I even tried putting in flags in Custom Chrome/Chromium executable field, but this is not an option, of course... Can the flags be changed at the Settings level in future?

Thank you.

@kylon
Copy link
Owner

kylon commented Sep 29, 2023

the method above is for source, download the repo, apply the edit and paste the extension folder in sharedown repo folder and run with npm start

@mikhail-ict
Copy link
Author

Thank you so much for the instructions. It worked – the extension was there when Chrome was loaded.

But I got this message when signing in:

The Chrome extension is not supported on your version of Windows. You must be on Windows 10 version 1703 and above. Alternatively, you can use Microsoft Edge or Internet Explorer to access this application.

Though the same browser works perfectly with that extension when not being called from Sharedown. So there might be some awareness that the extension is being loaded unpacked on the sign-in end?

@mikhail-ict
Copy link
Author

mikhail-ict commented Sep 30, 2023

I loaded the unpacked extension in the normal circumstances and it gave me the same error. Though the original .crx-installed version is working as intended.

Can it be loaded directly from Chrome Web Store?

If the extension is hosted on the Chrome Web Store, you might use the --enable-easy-off-store-extension-install and --force-install-webstore-item=<extension_id> command-line switches along with the extension’s update URL.

@kylon
Copy link
Owner

kylon commented Oct 1, 2023

If the extension is hosted on the Chrome Web Store, you might use the --enable-easy-off-store-extension-install and --force-install-webstore-item=<extension_id> command-line switches along with the extension’s update URL.

afaik not supported, install is not working too
it is possible puppeteer has a default arg that must be removed for this to work

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants