Added Configuration Option #2 and Upgraded Extension to Follow Chrome Extension Best Practices#3
Added Configuration Option #2 and Upgraded Extension to Follow Chrome Extension Best Practices#39jaDevo wants to merge 2 commits into
Conversation
I added the Configuration Option and Upgrade Extension to follow best practices for Chrome extensions.
|
@9jaDevo you rock! I will review this either today or early tomorrow. From a quick look it's fantastic and I definitely appreciate the detailed PR description. |
|
@ao5357 I trust you are good. I guess it has been a busy period. I just want to confirm if you were able to review the code. |
Yes, sorry, reviewing this PR is important and among the next 3 things I have planned to do outside of my day job. The past two weeks have really gotten away from me and I feel bad for letting this sit here since you so quickly did an incredible thing. It's looking like a tonight or tomorrow morning thing now -- thank you for your patience |
ao5357
left a comment
There was a problem hiding this comment.
@9jaDevo sorry for the delay in getting back to you.
I definitely appreciate all the work here, and hope we can get this to a mergeable state.
The key thing that appears to be missing for me is that the extension doesn't seem to work.
Testing steps:
- Reviewed code line-by-line. Made sure that there wasn't any obvious third-party injection since that's my main concern with open source contributions on these extensions. Everything looked great
- Cloned down
git@github.com:9jaDevo/page-to-wireframe.gitto my local - In Chrome went to
chrome://extensionsand loaded the checked out directory as an unpacked extension - Navigated to a few pages and clicked on the extension icon. Was presented with a settings form, but clicking either 'Save' or 'Disable' did nothing to the pages I was on
When I first opened the browser devtools it gave a lot of warnings about the tabId not being found, but it didn't seem to be triggered by the extension action -- just perhaps by having tabs.
The intent of Issue #2 was giving the user the ability to choose their preferred of the two fonts once when setting up the extension (or right-clicking the extension icon) in a more persistent manner -- it's not really an option you'd have to pick every time you click the extension icon. This can be accomplished with the options_page and/or options_ui manifest options that are v2/v3 compatible. Here's an example https://github.com/ao5357/development_favicon/blob/master/manifest.json
When the user clicks the extension icon it should only turn the page into a wireframe. Reloading the page should not persist the wireframe -- the user can re-click the extension icon to make it happen again as desired. It's a very simple, predictable operation. I wouldn't be opposed to the wireframe going away if the user clicks the icon a second/even time in a single page load, but it's not a huge priority.
I'm cool with most of the formatting changes you're suggesting in the PR, but would prefer to keep Helvetica in the CSS font stacks. If we're not bringing in an extension-specific font then I'd like a full web-safe Arial/Helvetica stack.
|
@ao5357 Thanks for your Feedback; kindly check the video below of how it is working here; maybe I might need to commit the code again |
|
Here's my response to the points you raised: 1. Extension Not Working
2. Persistent Font Selection (Issue #2)
3. Extension Behavior on Reload
4. Font Stack
Additional Changes:
|
|
@9jaDevo Thanks! I should have time to review the changes this week. |
|
@9jaDevo I just reloaded the updated extension, both unpacked and locally packed, and it's still not cooperating. Should the extension work immediately upon installation? Could you provide any additional steps required to get it working? If it helps I'm using Chrome 131 on Linux. The current version uses CSS and other URL formats like Also, it seems the extension inserts at least one stylesheet (and maybe more stuff like content scripts?) on every pageload of every tab. Is this necessary? Ideally the extension would only do an action when a user clicks the button -- this would help with performance, privacy, security, etc. |
|
@ao5357 Actually, before I deployed, I ensured it went through testing. I am also running Chrome version 131 on Windows 11, and all is running smoothly; I will try to find a way to run a test on Linux. |


This pull request introduces the following changes to the extension:
1. Configuration Option #2
2. Upgrade Extension to Follow Chrome Extension Best Practices:
New Features:
Additional Notes: