Skip to content

Chrome Extension Manifest v3 Service Worker #1229

Description

@AleCucina

I noticed there is a problem obfuscating the service worker of a manifestv3 chrome extension.
Now the function to run a script is:

    const example = "Hello World!"
    chrome.scripting.executeScript({
        func: (param) => {
            console.log(param) // Hello World!
        },
        args: [example],
        target: { tabId: tabId }
    })

But probably with the obfuscated code a problem arises because what is inside the func() loses meaning since the rest of the obfuscated code is in the service worker and not in the content of the page.

Does anyone know how to fix this problem?
Thanks in advance!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions