Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Improve srcset rewriter to handle descriptors correctly. #16

Merged
merged 4 commits into from
Nov 17, 2024

Conversation

gennaroterry
Copy link
Contributor

The previous implementation failed to properly rewrite srcset attributes when they contained descriptors (like 1.5x, 2x). Updated the parser to preserve descriptors while rewriting URLs.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#srcset

The previous implementation failed to properly rewrite srcset attributes
when they contained descriptors (like 1.5x, 2x). Updated the parser to
preserve descriptors while rewriting URLs.
@gennaroterry
Copy link
Contributor Author

gennaroterry commented Nov 11, 2024

The sweat daddy Cloudflare is still preventing us from accessing with this.

https://good.site/scramjet/blob:https://trycloudflare.com/long_uuid?dest=worker

@gennaroterry
Copy link
Contributor Author

gennaroterry commented Nov 11, 2024

Em.. Sir, it looks like the Playwright test didn't pass. And It seems that Youtube is blocking Github actions' IP.

@velzie
Copy link
Member

velzie commented Nov 12, 2024

thank you! can you quickly acknowledge that you agree to the license agreement by leaving a thumbs up on this message? i should be able to merge this as soon as i run a few tests

@Percslol Percslol self-requested a review November 17, 2024 23:10
@Percslol Percslol merged commit f0ee177 into MercuryWorkshop:main Nov 17, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants