win32ss / supermium

Chromium fork for Windows XP/2003 and up
https://win32subsystem.live/supermium/
BSD 3-Clause "New" or "Revised" License
2.35k stars 79 forks source link

Manifest V2 is already being killed off - add preliminary support and option to extract MF2 extensions on a Chrome profile #776

Open TheSystemGuy1337 opened 2 months ago

TheSystemGuy1337 commented 2 months ago

Is your feature request related to a problem? Please describe. Google has pressed the nuclear button and is currently phasing out Manifest V2 to kill off Adblockers. I suspect TONS of people on modern OSes may end up flocking here rather than Firefox (sadly Mozilla is now run by a pro-advertising, pro-AI CEO and Google isn't any better in that regard). Also, Windows 10 will reach EOL soon and supermium may need to add support when Google pulls out. In other words, a double-edged sword.

Describe the solution you'd like Add preliminary support for Windows 10+ and Manifest V2 and allow importing of browser profiles from Chrome (along with MF2 extensions), run a supermium web store (if possible) that's independent from the Chrome Web Store to offer an easy way of install MF2 extensions once Google savagely murders them. Either that or disable that stupid developer extension nag and forced disabling and offer to install uBlock Origin and NoScript on first launch.

Describe alternatives you've considered No alternatives exist, other than contacting the EFF and getting them involved.

Additional context No additional context. This might go against the goals of the supermium project, but when millions of people want NoScript and their adblockers to work on a Chrome-compatible browser; people might end up turning here rather than Firefox. I don't know what to say. I hate it. If I can post Big Bill Hells here and point the cannon at Google, I would. But that's beyond the scope here and I'm not turning this place into budget C-SPAN.

XakerTwo commented 2 months ago

well, with little dancing and few risks you can do it already (profile migration) as for option to import extensions only... ~ not sure. also where you will get latest versions of extensions with MV2 some time later?..

first of all - profile that will be imported may lose all its cookies, passwords and other things that affected by encryption(it will happen if you import profile to different windows user profile or OS installation even on same machine)

second of all - MAKE A BACKUP! additionally backup the HKEY_CURRENT_USER\Software\Supermium registry key(folder) via Export option, use on reverting

close Supermium goto %localappdata%\Supermium rename exists User Data folder (you can delete it later, renaming is for reverting) copy here the User Data folder of the target profile (with MV2 extensions) run Supermium with --revert-from-portable argument (e.g. via cmd or shortcut with added argument)

not tested but most likely will works you can try to copy only extensions related folders plus Secure Preferences file from target profile they are located in User Data\Default folder, where Default can be your google profile name copying of Secure Preferences will override some settings and all installed extensions, so if you need to merge - you need to edit Secure Preferences manually with notepad(++) and some tool to format json(for notepad++ exists plugin JSTool, that able to do it). you need to edit(merge content) two nodes:

and again - first launch after this should be with --revert-from-portable argument

UPD: to prevent auto-updating of extensions add following argument to shortcut --disable-background-networking, and to prevent updates of browser components(not extensions) add --disable-component-update. i use both cuz hate any background activity and silent updates

MizaGBF commented 2 months ago

As for Windows 10 EOL, extended support (ESU) goes up to 2027 and the LTSC version is supported until 2027 too. Win10 LTSC IOT ENT even goes up to 2032.
I doubt Google will drop support in 2025, I would expect them to keep it up until 2027, at the very least. But don't quote me on this.
I also assume they would have announced a date too, by now.

But if they do drop support in 2025, there is also a possibility Microsoft might keep updating Edge, in some ways, even after Google drop support (I remember they did patch security issues on the last version of Edge for Win7/8, after the support ended).
So, not all hope is lost for win10, yet.

win32ss commented 2 months ago

Firefox hasn't even been able to drop Windows 8.1 informally yet, and Chromium isn't that far behind either. The thing that broke Chromium on 8.1 was DirectWrite, but there is a redistributable up-to-date variant of DirectWrite called DirectWriteCore that works on Windows 7 and can replace system-supplied DirectWrite, but it does introduce some issues of its own.

I don't think Chromium can easily drop Windows 10 either with relatively few relevant revisions to the win32 API in Windows 11. They could probably drop anything below 1809 based on the (presently optional) use of VirtualAlloc2 and MapViewOfFile3, but there's nothing that could really be done about 1809 and later yet.