RedditPP Mascot

RedditPP

r/uBlockOrigin • … • u/VoltexRB

Need a filter that removes a small part from a resource url.

I am trying to get past a paywall that blurs pdf pages, the pages are either in the server directory /html/pages/blurred/page.webp or /html/pages/page.webp, how do I create a filter that automatically removes the "/blurred" directory from the resource link on the web page, if a resource has one?

Note, this is not the actual web page I am trying to do this on. This is a page thats on [studocu.com](https://studocu.com) as an embedded element in an <img> block

Example:

[https://d3tvd1u91rr79.cloudfront.net/2cc90de98b59aa5393065bfaed0c4ca4/html/pages/blurred/page3.webp](https://d3tvd1u91rr79.cloudfront.net/2cc90de98b59aa5393065bfaed0c4ca4/html/pages/blurred/page3.webp?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6XC9cL2QzdHZkMXU5MXJyNzkuY2xvdWRmcm9udC5uZXRcLzJjYzkwZGU5OGI1OWFhNTM5MzA2NWJmYWVkMGM0Y2E0XC9odG1sXC8qIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNjk5Mzc2MTYyfX19XX0_&Signature=NGIMwYjDwhdG6yuVOt5FYMEEi~zDmnlMrZPhKbQ7MhhjB6FjBBRVgg~dWULyYZu8ZtM-xqabGNqoYcO~rcLFAW1IitfVKcZmXcIlP6ui47qrNk4Btbo4R1MK6Vz3GDWbe43bviqXxpp5vtexjthbSzBufe-vDmSL0WnRVhnY3p6wPAT8xiWV0kw3XOwRFiMJOO4Lw570uKTw-QFI4SDejJDGB6ZeBjlcc26bFVuY4z4aKx0GUrTvmc7~eKO~q-GsPLCyBlA4tf43zjCP~sKS2lbe4eV1fWkdHiMZA~6U1ZEzemEp1LVGHHNjqYFziRZLcEzuEj1NQ6ftyaUp7EPenA__&Key-Pair-Id=APKAJ535ZH3ZAIIOADHQ)

Is the blurred version, if you just remove the /blurred directory then its the normal page.

— 0