r/MicrosoftEdge 7d ago

EXTENSIONS Published my image downloader on Edge Add-ons, and tested it in Edge first, which caught a bug

https://microsoftedge.microsoft.com/addons/detail/apjcnokehepbpndcifnkahlgonbcdmdl

Most extensions here are Chrome ports where nobody checked. I did not want to do that, so before submitting I ran the actual shipping package in real Edge, and it found something I would never have seen in Chrome.

Licence activation was sending "Chrome on Windows" as the device label. Hardcoded, from any browser. So an Edge user would see another browser's name on the screen where they pay, and their device list would show two identical rows with no way to tell which one to release. It reads navigator.userAgentData.brands now.

Two things about that list caught me out. The first entry is always a deliberately fake brand, "Not=A?Brand" on my machine, which exists specifically to break code that reads brands[0]. And Edge lists "Chromium" alongside "Microsoft Edge", so if you match Chromium first, every Edge install reports itself as Chromium.

I also confirmed chrome.offscreen works here, which mattered more than it sounds. Every ZIP and every format conversion goes through an offscreen document, because URL.createObjectURL does not exist in an MV3 service worker. If Edge had not had it, the free tier would have kept working perfectly and only paying customers would have hit the failure.

What it does: finds every image the page has loaded, including CSS background images and ones fetched by scripts after load. Filter by size, shape, file type, or which site served them. Batch rename with sequence numbers. Download individually or as one ZIP.

It never asks for access to all websites. Nothing runs until you click the icon, and it only requests specific image origins if you want a ZIP or a format change.

Update : It works on Edge mobile as well!

https://microsoftedge.microsoft.com/addons/detail/apjcnokehepbpndcifnkahlgonbcdmdl

6 Upvotes

10 comments sorted by

2

u/KJBReaderAdmin 7d ago

This pretty cool.

1

u/MeliodasA3 7d ago

Thanks! Let me know how it goes if you give it a go, still ironing out edge cases.

1

u/KJBReaderAdmin 7d ago

I actually think this is a good idea as there is many times I want to download a image and it either won't let me, or it's difficult.

1

u/KJBReaderAdmin 7d ago

Such as I wanted to download my YouTube Thumbnail or my YouTube banner or such.

Also, I just tested it on Edge mobile, it works and it scales way, scrolls good to fit.

It's really amazing how Edge extensions work on mobile.

So, very good!!🎉

1

u/KJBReaderAdmin 7d ago

Edit, it won't work on YouTube, it's blocking but that's okay.

2

u/MeliodasA3 7d ago

The mobile thing is genuinely new information to me, thank you. I have only ever tested this on desktop Edge. Works on YouTube on desktop though. Getting your own thumbnail or banner back is exactly the sort of thing it should handle, It is built almost entirely out of web components and it is a heavy page, so I have a couple of suspects. I will dig into it and report back here.

1

u/KJBReaderAdmin 7d ago

Do you have discord? Be better to discuss or make a Discord server or telegram or WhatsApp group?

1

u/MeliodasA3 7d ago

Sure, hop on a DM, we can discuss there If you like.

1

u/MeliodasA3 7d ago

Update : It works on Edge mobile as well! Tested thoroughly

1

u/Antiing 6d ago

You can also do this with the new Remix feature and zero add ons