Skip to content

Migrate extension to Manifest V3#6

Open
voss wants to merge 5 commits intoburgyl:masterfrom
voss:master
Open

Migrate extension to Manifest V3#6
voss wants to merge 5 commits intoburgyl:masterfrom
voss:master

Conversation

@voss
Copy link

@voss voss commented Jul 18, 2025

Hello burgyl,

Thank you for a great extension which I love using with Shaarli. Unfortunately it has fallen short of the recent updates and requirements to chrome extensions. I hope to fix that with this pull request. It migrates the extension from the deprecated Manifest V2 to Manifest V3 to comply with the latest Chrome Web Store policies.

Key changes include:

  • Updated manifest.json to version 3.
  • Replaced chrome.tabs.executeScript with the more secure chrome.scripting.executeScript.
  • Converted the background script to a service worker.
  • Moved injected code from inline strings to separate files (addUrl.js, addNote.js).

I've used this version as a local install for the last week, which works, but I don't have a chrome web store developer account, so I can't actually check if the extension meets the requirements.

Best,

voss

voss added 5 commits July 12, 2025 23:33
updated manifest to V3
The background script now uses chrome.scripting.executeScript and separate files for the injected code. It also includes an on-installed listener to guide new users to the options page.
code to inject when adding a URL.
code to inject when adding a note.
Changed version number back to the original 1.1.0, as there are no feature changes, only plumbing. Owner can change to an appropriate version number if pull request is accepted.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant