simonfrey / unshort.link

Prevent short link services from tracking you by unshortening the urls for your
https://unshort.link
GNU Affero General Public License v3.0
175 stars 25 forks source link

Unshort.link Feedback: reurl.cc not expand #56

Closed pixiandouban closed 3 years ago

pixiandouban commented 3 years ago

This shortlink (https://reurl.cc/Oq9lQg) can’t expand to a long link.


Short Url: https://reurl.cc/Oq9lQg Long Url: https://reurl.cc/Oq9lQg

simonfrey commented 3 years ago

That is due to the way how reurl.cc redirects. They do that with a javascript setup.

 window.location.replace(target);

With target being the value of an input field.

This would be generally solved by #28 as we could than adapt to all forms of javascript redirects. For simpler cases we could check with a regex for the url redirect schemas in javascript:

// Simulate a mouse click:
window.location.href = "http://www.w3schools.com";

// Simulate an HTTP redirect:
window.location.replace("http://www.w3schools.com");

reurl.cc can an this point in time not be supported as of the required headless chrome setup