Repository navigation
Update Manifest version from v2 to v3 #326
Description
Activity
V2 is being deprecated June 2024 https://developer.chrome.com/docs/extensions/develop/migrate/mv2-deprecation-timeline
so 3 months left to migrate.V2 is being deprecated June 2024 https://developer.chrome.com/docs/extensions/develop/migrate/mv2-deprecation-timeline so 3 months left to migrate.
The
onBeforeRequestAPI will be removed from Chrome with V3. This means that ClearURLs no longer works in Chrome. As for many other ad blockers and privacy addons, there is no alternative to replace this functionality. ClearURLs will therefore only work in Firefox and Chromium-based browsers that continue to offer theonBeforeRequestAPI.Reacted by John Cosentino, deathtrip, titus, maxxyme and nascentt@KevinRoebert Isn't the onBeforeRequest API used by ClearURLs only to redirect urls? In fact even in manifest V3, it is possible to use declarativeNetRequest to redirect to different URLs.
There is a official code example on Github exclusively for this: https://github.com/GoogleChrome/chrome-extensions-samples/tree/main/api-samples/declarativeNetRequest/url-redirect
See the google article to block and or redirect urls: https://developer.chrome.com/docs/extensions/develop/migrate/blocking-web-requests
EXAMPLE IN MANIFEST V2:
chrome.webRequest.onBeforeRequest.addListener((e) => { console.log(e); return { redirectUrl: "https://developer.chrome.com/docs/extensions/mv3/intro/" }; }, { urls: [ "https://developer.chrome.com/docs/extensions/mv2/" ] }, ["blocking"] );THE SAME EXAMPLE IN MANIFEST V3:
[ { "id" : 1, "priority": 1, "action": { "type": "redirect", "redirect": { "url": "https://developer.chrome.com/docs/extensions/mv3/intro/" } }, "condition": { "urlFilter": "https://developer.chrome.com/docs/extensions/mv2/", "resourceTypes": ["main_frame"] } }It is primarily used to filter the tracking parameters.
Reacted by Timothy Johnson- pinned this issue
on Aug 17, 2024 So if it's possible, will ClearURLs work with manifest V3?
As CleanURLs won't work with Chrome MV3, I've created a comparable extension using the MV3 framework. I invite you to join our project at Linkumori on GitHub. https://github.com/subham8907/Linkumori
Reacted by deathtrip, PikachuEXE, ancientvamp, Org Contrib, titus, Shankar Sivarajan and Rolle LaukkarinenAs CleanURLs won't work with Chrome MV3, I've created a comparable extension using the MV3 framework. I invite you to join our project at Linkumori on GitHub. https://github.com/subham8907/Linkumori
I don't understand why it would have been so easy to the same...? 🤔🤔🤔
Reacted by nascentt@subham8907 thank you for your work on https://github.com/subham8907/Linkumori 🙏
- locked and limited conversation to collaborators
on Jun 7, 2025