-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat(web-clipper): Convert to Manifest V3 with UX enhancements #7139
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
Closed
Octech2722
wants to merge
15
commits into
TriliumNext:main
from
Octech2722:feature/manifest-v3-update
Closed
feat(web-clipper): Convert to Manifest V3 with UX enhancements #7139
Octech2722
wants to merge
15
commits into
TriliumNext:main
from
Octech2722:feature/manifest-v3-update
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Complete Manifest V3 conversion for Chrome extension future compatibility - Add progressive status notifications with real-time feedback - Optimize performance with non-blocking async operations - Convert to ES module architecture with service worker - Replace browser.* APIs with chrome.* throughout - Add smart content script injection (dynamic, only when needed) - Enhance error handling with graceful degradation - Preserve all existing functionality while improving UX - Faster save operations with clean error-free console logs Breaking Changes: None - fully backward compatible Performance: Significantly improved save operation speed UX: Added real-time status updates during save operations
eliandoran
requested changes
Oct 6, 2025
…pment files - Improve README.md formatting and spacing - Remove development/debugging files (MANIFEST_V3_CONVERSION.md, PULL_REQUEST.md, background-v2.js, verify-conversion.sh) - Clean up project structure as requested in PR review
contributor
reviewed
Oct 7, 2025
apps/web-clipper/content.js
Outdated
| @@ -1,3 +1,33 @@ | |||
| // Utility functions (inline to avoid module dependency issues) | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These three functions are still defined/duplicated in utils.js
- Remove inline definitions of randomString(), getBaseUrl(), and getPageLocationOrigin() - Update content.js to use shared utils.js via requireLib() mechanism - Make affected functions async to properly load utils.js before usage - Addresses maintainer feedback about duplicate functions in utils.js
…h2722/Trilium into feature/manifest-v3-update
- Extract fetchTriliumHandshake() method to eliminate duplicate fetch+parse pattern in trilium_server_facade.js - Consolidate redundant handshake request handling for desktop and server connections - Use consistent sendMessage() wrapper throughout popup.js instead of direct chrome.runtime.sendMessage calls - Improve code maintainability and reduce repetition across the codebase
- Add comprehensive error handling to content script message listener - Wrap trilium-save-page and trilium-save-selection handlers in try-catch blocks - Improve requireLib() function with proper error handling and success validation - Fix load-script handler in background.js to return proper responses - Add fallback responses to prevent message channel closure - Should resolve 'message channel closed before response received' errors
|
@Octech2722 , why close the PR? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📋 Summary
Converts the Trilium Web Clipper Chrome extension from Manifest V2 to Manifest V3, ensuring compatibility with Chrome's future extension platform while adding significant UX improvements.
✨ Key Improvements
🧪 Testing
📁 Files Changed
manifest.json)background.js)content.js,popup.js, etc.)utils.js,trilium_server_facade.js)🔄 Compatibility
Ready for production use.