Hacker News new | ask | show | jobs
by hnrodey 895 days ago
I just developed a Chrome extension using a content script, very similar to this extension.

Extension author, question: What was your process for getting updates from the content.js script loaded into the browser for testing? Was it reloading the extension through chrome://extensions?

The only thing I found that could work was changing the content script and reloading the extension through chrome://extensions. I didn't see any type of "shortcut" available. Frustrating, and increased time on my change/test feedback loop.

It got to a point where I moved the core logic from my extension into a separate npm package where I got it working through unit tests. Then my browser extension became primarily working with the DOM, and incorporating the results from my package.

shameless plug: Wordle Genie - Wordle Genie integrates directly with the Wordle game to show the remaining possibilities based on the board hints.

extension: https://chromewebstore.google.com/detail/wordle-genie/efmlmf...

source: https://github.com/ryanrodemoyer/wordle_genie

1 comments

You're right. I had to reload the extension, then reload the page to get my content script changes injected into it.