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

Enable an extension icon and options to manage it such as on/off, etc. #6

Open
planetoid opened this issue Jan 16, 2025 · 3 comments
Open
Labels
help wanted Extra attention is needed

Comments

@planetoid
Copy link

Problem Description:

When the extension is enabled, browsing the Facebook homepage briefly displays the content before it quickly turns into a blank page. The browser's developer console logs the following error:

wYG80FM5vGF.js:71  ErrorUtils caught an error:

Multiple calls to CometPlatformRootClient.init are not supported.

Subsequent non-fatal errors won't be logged; see https://fburl.com/debugjs.

Browser Version: Edge 131.0.2903.147

@thadguidry
Copy link
Owner

thadguidry commented Jan 16, 2025

Hi @planetoid You should be able to enable/disable the Extension through the Edge browser's Extension settings to turn it off for browsing the general web. Then turn it on when doing work on Wikidata.

I don't know how much work it would be to enable a quick click button to enable/disable it, as well as display an icon.
Any tips? Perhaps you could offer a pull request that enables that new functionality?
I've definitely thought of them while working on it. See Next Steps section in the README that I thought of: https://github.com/thadguidry/wikidata-entity-linker?tab=readme-ov-file#next-steps

@planetoid
Copy link
Author

Another extension called 'Enable JavaScript' can achieve 'Use a single button to turn JavaScript on or off on the Google Chrome Tab you are in.' The implementation details are unclear.

https://chromewebstore.google.com/detail/enable-javascript/egljjlhdimceghlkloddalnlpgdgkboj

@thadguidry
Copy link
Owner

You would simply read up on adding features into this projects' existing manifest.json that enable the things like the icons, action, options_page, options_ui, etc.

It's actually quite simple! Declarative entries in the manifest.json file enable those features, and just 1 or 2 more files added in like options.html or if side_panel is warranted as well, an HTML file that displays in the sidePanel of Edge or Chrome.

Learn more here:
https://learn.microsoft.com/en-us/microsoft-edge/extensions-chromium/getting-started/manifest-format?tabs=v3
https://developer.chrome.com/docs/extensions/reference/manifest

@thadguidry thadguidry changed the title Conflict with Extension: Facebook Homepage Turns Blank After Initial Load Enable an extension icon and options to manage it such as on/off, etc. Jan 17, 2025
@thadguidry thadguidry added the help wanted Extra attention is needed label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants