I am trying to write a simple userscript for practice with this concept. Please forgive this example, but its the first one I can think of.
So on sports illistrated swimsuit images, they deliver a smaller than original image. Here is a sample URL: (might be nsfw if you consider bikinis nsfw) https://www.si.com/.image/c_limit%2Ccs_srgb%2Cq_auto:good%2Cw_385/MTY4MjU5NDM2MzkyMDMyMTI5/chrissy-teigen6jpg.webp
So in order to manipulate the URL to load the original size image, I need to remove this exact string from every image URL I load on this website: "c_limit%2Ccs_srgb%2Cq_auto:good%2Cw_385/"
Removing that string from the image URL serves the largest image. I am trying to write a userscript to automatically remove that, but I struggling with where to start. I have basics in JS down (I love writing bookmarklets) but am struggling to write a userscript.
Thanks.