-
Notifications
You must be signed in to change notification settings - Fork 445
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
[Feature] Manifest V3 for Chrome #1934
Comments
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
The userScripts API is ready for testing in Canary so I'll start migrating. It should improve/simplify performance for many scripts, but the API has a few nasty limitations such as the lack of |
@tophf what's the latest on this? Is V3 workable? It looks like they have announced June 24 for V2 deprecation https://developer.chrome.com/docs/extensions/develop/migrate/mv2-deprecation-timeline |
Nothing's changed, it's just as bad. We'll use the new API eventually though. I'm also waiting for them to remove the highly problematic requirement to enable developer mode in chrome://extensions page for every user of the extension. As long as it's present I'm reluctant to work on the new API and I'm even prepared to use the ExtensionManifestV2Availability policy locally myself and promote it until Chrome implements a proper solution. |
I believe that Manifest v3 is possible. There are userscript managers for Safari that use MV3. I'm certain there will be a sacrifice in the power of userscripts, though. |
This seems to be one path to take
https://developer.chrome.com/docs/extensions/reference/api/userScripts
TamperMonkey is also still on V2. I saw a discussion here:
Tampermonkey/tampermonkey#644
…On Thu, Apr 4, 2024 at 5:31 AM Arjun P ***@***.***> wrote:
I believe that Manifest v3 is possible. There are userscript managers for
Safari that use MV3. I'm certain there will be a sacrifice in the power of
userscripts, though.
—
Reply to this email directly, view it on GitHub
<#1934 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABVCMBRFMJG3BROZQNAIYZ3Y3UMX5AVCNFSM6AAAAAA57THEZGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZWGY3TGMRUG4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@tophf MV2 will become disabled in pre-stable versions of Chrome (Dev, Canary, Beta) in June 2024. In Chromium 127 MV2 will be disabled. Current version is 124. 127 will come in 3 September 2024, so there's 4 months left to transition. This thread has a lot of info (which as I just checked, you have contributed to). Additionally Tampermonkey Beta has switched to MV3. |
I'm not sure we should update our stable extension because MV3 breaks some things and there's no good substitute yet, we should probably suggest the users to enable the policy to prolong ManifestV2 as shown here for Windows, we should probably describe examples for all platforms somewhere. As for beta, I don't know. Maybe. I was planning to do it anyway this month. |
@tophf Why not have one extension that is MV3 and one that is MV2, like uBlock Origin & uBlock Origin Lite? How much functionality is lost in MV3? |
I've listed some issues I remembered in Tampermonkey thread. |
Based on TM MV3 Beta, even the |
I have seen the frequent updates for VM. I don't think the minor updates in the current VM 2.18.x is necessary. They are just minor UI issues. It should become a stable version. |
The problem with GM_getValue is different and it doesn't affect everyone. There are other problems I've listed. |
Excited for this - while MV3 is really annoying in a bunch of ways, Chrome continues to make MV2 harder and harder to use, especially in compliance-heavy environments. |
This solution to keep Manifest V2, based on |
It might work for the user account if you replace HKEY_LOCAL_MACHINE with HKEY_CURRENT_USER, could you test? Update: works for me. |
https://github.com/BlackGlory/eternity is based on Manifest V3 and is working for me. Instead of rewriting everything, perhaps we could have Violentmonkey based on it, add support for the |
We don't need to rewrite everything either, it's not the problem. |
@tophf Will Violentmonkey still be on MV2 when the end-user transition begins next week? I take it from this thread Violentmonkey will require users to edit the registry (Windows) or install profiles (macOS) for functionality to work once the end-user transition begins. |
Chrome will show a button to keep the extension, so depending on how many users do that Chrome developers will decide on the availability of this button. |
I still think it would be a good idea to update at least the Beta extension to MV3 or create a new extension (based on Violentmonkey) that is MV3-based. While MV3 removes a lot of the power of MV2-based userscript managers, it greatly improves security and efficiency. If there isn't an ongoing attempt to port it to MV3, I may do it myself in a fork (and eventually push upstream if desired). |
It doesn't, those claims are greatly exaggerated to the point of being unsubstantiated propaganda.
|
I think we will make an MV3 version anyway because userScripts API offers some good features like world isolation and true document-start. |
This might not be true because the author of Tampermonkey has investigated how to use the new APIs to do the same as MV2. Only GM.webRequest is lost. The TM MV3 beta is already released and you can find the crx download link in TM github repo issue. |
Tampermonkey MV3 version has all the problems I've listed. But indeed, the power is practically the same, so @cyfung1031 is correct. |
Motivation
Chrome has deprecated support for Manifest V2. I'm in a corporate environment so we've been able to use it this year but that ends in 2023. When Chrome drops Manifest V2 support Violentmonkey won't work anymore. Side note, MS Edge won't run Manifest V2 extensions anymore starting January, 2024.
Proposed Solution
Modify the project to use a V3 manifest, completely replacing V2.
https://developer.chrome.com/docs/extensions/migrating/
https://extensionworkshop.com/documentation/develop/manifest-v3-migration-guide/
https://blogs.windows.com/msedgedev/2022/12/05/manifest-v3-and-microsoft-edge-add-ons/
Use Cases
When a browser does not support Manifest V2, Violentmonkey can still be installed and used.
The text was updated successfully, but these errors were encountered: