PactInteractive / image-downloader

Download images from the web more easily. A browser extension for Google Chrome, Microsoft Edge, and Brave.
https://chrome.google.com/webstore/detail/image-downloader/cnpniohnfphhjihaiiggeabnkjhpaldj
809 stars 298 forks source link

Filter Out from URL #115

Open aseguramcgrew opened 1 year ago

aseguramcgrew commented 1 year ago

Describe the feature

I use this extension pretty regularly. One issue (for me) I keep running into is when I use the extension, it opens the image with the "?q=75&fit=clip&auto=format" after the image extension. This means, I have to use the extension to open each image in a separate window and manually delete the "?q=75&fit=clip&auto=format" at the end of each link. If the page is updated with 200+ images, it requires me to open 200+ pages, delete the extra code, and then reload the page without those additional attributes.

Is there a way to get this extension to automatically remove anything after the image extension? That would make using the select all and download feature much easier when a website uses these additional lines of code to alter the image.

If you look at the examples below, you'll be able to see that if you just remove the "?q=75&fit=clip&auto=format" at the end of each link, it will load the full resolution copy of the picture you're trying to save.

URL

Main Page: https://www.beyonce.com/ Images (Before Removing Attributes): https://cdn.sanity.io/images/fvrrd1kn/production/9d30671480ea552daa7daecb7bc78d0472a97f88-1691x2172.jpg?q=75&fit=clip&auto=format https://cdn.sanity.io/images/fvrrd1kn/production/3feedb1baafb7c61be02a2a66d72adf10e5beef3-3000x4500.jpg?q=75&fit=clip&auto=format

Images (After Removing Attributes): https://cdn.sanity.io/images/fvrrd1kn/production/9d30671480ea552daa7daecb7bc78d0472a97f88-1691x2172.jpg https://cdn.sanity.io/images/fvrrd1kn/production/3feedb1baafb7c61be02a2a66d72adf10e5beef3-3000x4500.jpg

Screenshots

If applicable, add screenshots to help explain your idea.