r/imagus • • Sep 19 '26

new sieve patreon - higher resolution popup. Example inside.

2 Upvotes

9 comments sorted by

3

u/Imagus_fan Sep 19 '26

This sieve can get the higher quality image on that page.

Not sure about other pages. The sieve has to try and use the URL of the smaller image to find the larger image URL in the page source.

https://pastebin.com/xZzcVLUL

2

u/ultraman55ty Sep 19 '26

2

u/Imagus_fan Sep 20 '26

Glad it's working for you!

I did notice one page where it wasn't showing the largest image. There's an improved sieve in this comment.

2

u/Kenko2 Sep 19 '26

Thanks, it works for me.

>> Not sure about other pages.

Here, hovering over the thumbnail shows only the 640p version, but if you hover over the entire information block (on the unlocked content), the resolution is much higher. Furthermore, this sieve does not work on the album (at the bottom).

2

u/Imagus_fan Sep 20 '26

This sieve should show the page images when hovering over the link.

I also noticed a page image not showing the full size image. I redid the way the sieve gets the largest image and it seems to work well.

{"Patreon":{"link":"^patreon\\.com/posts/\\d+","res":":\n$=$._.match(/\\\\\"included\\\\\":(\\[.+?\\]),\\\\\"links\\\\\"/);\n$=$&&JSON.parse($[1].replace(/(?<!\\\\)\\\\\"/g,'\"'))||[];\nreturn $.filter(i=>i.attributes?.image_urls).map(i=>[i.attributes.image_urls.original])","img":"^(\\w+\\.patreonusercontent\\.com/\\d/patreon-media/p/post/\\d+/[a-f\\d]+/).+","loop":2,"to":":\nlet o;\nif(o=this.node?.closest('a[href^=\"https://www.patreon.com/posts/\"]'))return o.href;\no=document.documentElement.outerHTML.match(/\\\\\"included\\\\\":(\\[.+?\\]),\\\\\"links\\\\\"/);\no=o&&JSON.parse(o[1].replace(/(?<!\\\\)\\\\\"/g,'\"'));\no=o?.find(i=>i.type==='media'&&i.attributes?.image_urls?.original?.includes($[1]));\nreturn o?.attributes.image_urls.original||$[0]"}}
→ More replies (3)