Skip to content

Update Manifest version from v2 to v3 #326

Description

@inson1
No description provided.

Activity

  1. self-assigned this
    on Nov 28, 2023
  2. nascentt commented on Mar 7, 2024

    @nascentt

    V2 is being deprecated June 2024 https://developer.chrome.com/docs/extensions/develop/migrate/mv2-deprecation-timeline
    so 3 months left to migrate.

  3. KevinRoebert commented on Mar 7, 2024

    @KevinRoebert
    Member

    V2 is being deprecated June 2024 https://developer.chrome.com/docs/extensions/develop/migrate/mv2-deprecation-timeline so 3 months left to migrate.

    The onBeforeRequest API 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 the onBeforeRequest API.

  4. KevinRoebert commented on May 1, 2024

    @KevinRoebert
    Member

    @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.

  5. pinned this issue on Aug 17, 2024
  6. deathtrip commented on Sep 2, 2024

    @deathtrip

    So if it's possible, will ClearURLs work with manifest V3?

  7. subham8907 commented on Oct 20, 2024

    @subham8907

    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

  8. maxxyme commented on Mar 7, 2025

    @maxxyme

    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

    I don't understand why it would have been so easy to the same...? 🤔🤔🤔

  9. gruns commented on Jun 7, 2025

    @gruns
  10. locked and limited conversation to collaborators on Jun 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions