Giter VIP home page Giter VIP logo

Comments (9)

Ceiridge avatar Ceiridge commented on May 27, 2024

Does the Chrome development branch already have these restrictions? Are Manifest V2 extensions already blocked there?
I will look into it once this is the case, as long as I don't accidentally forget it, but no later than once it will be released on the main version, because then I will automatically notice it.

from chrome-developer-mode-extension-warning-patcher.

nl255 avatar nl255 commented on May 27, 2024

I am pretty sure the restriction is in place for Manifest V3 addons however the current branch supports both the existing V2 (which is unrestricted) and newer V3 manifest (which is restricted on Chrome but supposedly not Opera/Vivaldi/Brave) versions.

Currently no new Manifest V2 extension are allowed on the chrome store but existing ones will work fine and can continue to receive updates until January 2023 which is when V2 support will be removed entirely.

from chrome-developer-mode-extension-warning-patcher.

tophf avatar tophf commented on May 27, 2024

The problem already exists even though MV2 is not disabled yet: we can't develop and debug local unpacked MV3 extensions that will be installed later via enforced policies.

I successfully patched the dll manually on a disk, tried making a pattern, but got confused, here's the bytes at 0x01B0D177 file offset in Chrome 105.0.5195.127 x64: 42 08 48 89 F1 E8 FF EB E3 02 40 88 BE 40 01 00 00 41 BE 02 (the last 02 should be changed to 03). And here's the source.

from chrome-developer-mode-extension-warning-patcher.

Ceiridge avatar Ceiridge commented on May 27, 2024

The problem already exists even though MV2 is not disabled yet: we can't develop and debug local unpacked MV3 extensions that will be installed later via enforced policies.

I successfully patched the dll manually on a disk, tried making a pattern, but got confused, here's the bytes at 0x01B0D177 file offset in Chrome 105.0.5195.127 x64: 42 08 48 89 F1 E8 FF EB E3 02 40 88 BE 40 01 00 00 41 BE 02 (the last 02 should be changed to 03). And here's the source.

Thanks! Have you tried if your patch works and makes it possible to use the old API in MV3 extensions? If yes, I can make a pattern for it.

from chrome-developer-mode-extension-warning-patcher.

tophf avatar tophf commented on May 27, 2024

Yes, it works, I've verified it right away :-)

from chrome-developer-mode-extension-warning-patcher.

Ceiridge avatar Ceiridge commented on May 27, 2024

Here it is: 2eb3961
I wonder if the webRequestBlocking API even works with MV3 extensions, now that it is available

from chrome-developer-mode-extension-warning-patcher.

tophf avatar tophf commented on May 27, 2024

I wonder if the webRequestBlocking API even works with MV3 extensions

Yes, it works. It's the same old webRequest API in blocking mode that works the same way it did in MV2. There's an unfixed bug though: service worker doesn't auto-start for webRequest events, which will be fixed soon. It'll be still worse than MV2 because in MV3 there is no persistent background script, so if it unloads after 30 seconds, next time it'll take more than 50ms to start again which means the network request will be stalled.

from chrome-developer-mode-extension-warning-patcher.

Ceiridge avatar Ceiridge commented on May 27, 2024

I successfully patched the dll manually on a disk, tried making a pattern, but got confused

@tophf
By the way, a pattern is mostly just exactly the bytes, but all addresses, offsets and variables that could change in the future are replaced with wildcards (the ? character). This means that the pattern matches with a sequence of instructions and constant values and survive changing addresses, which always differ on every new compile.

If you want to find out more about it, I recommend looking at the Ghidra Yara Signature Generator: https://youtu.be/tBvxVkJrkh0?t=107 [Here you can click on volatile addresses and values that will change and they will become a wildcard.], but it's also easily possible to make it yourself without a plugin by manually disassembling.

from chrome-developer-mode-extension-warning-patcher.

tophf avatar tophf commented on May 27, 2024

Yeah I got that part, but the attributes in patterns.xml got the best of me :-)

from chrome-developer-mode-extension-warning-patcher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.