Open xwipeoutx opened 5 years ago
I get this link from a facebook messenger sub-window within facebook.com when copying a youtube link.
https://l.facebook.com/l.php?u=https%3A%2F%2Fwww.youtube.com%2Fplaylist%3Flist%3DPLHs6JH9ueCokcP2hje8PVPPqjucNJFUvO%26fbclid%3DQpPQ1LRfremubIcdLzIcr9XAR9uUbCBi5SUB_hOpcedZq4Ml-BGG5B4sXtPYt&y=MD11OVCOl7Qx0NF7pKDhF6Nr72rdvJ2bpbP0-I3XaTh6qzLKIQbGMRDdwZEaknXnWcN-mnFO8rc5c-AOs_yK1y_QsNSQzcjcKNLM1hp7LITyDx5w3yrtRLvMdHe54AJswQxQ
There are two parts
https://l.facebook.com/l.php?u=https%3A%2F%2Fwww.youtube.com%2Fplaylist%3Flist%3DPLHs6JH9ueCokcP2hje8PVPPqjucNJFUvO%26fbclid%3D
and
QpPQ1LRfremubIcdLzIcr9XAR9uUbCBi5SUB_hOpcedZq4Ml-BGG5B4sXtPYt&y=MD11OVCOl7Qx0NF7pKDhF6Nr72rdvJ2bpbP0-I3XaTh6qzLKIQbGMRDdwZEaknXnWcN-mnFO8rc5c-AOs_yK1y_QsNSQzcjcKNLM1hp7LITyDx5w3yrtRLvMdHe54AJswQxQ
I have sanitized the second part. I replaced [A-Z] and [a-z] and [0-9] with different random characters of the same type and case, leaving symbols alone. (Edit: That &y= should be &h=, the h was replaced with y in my sanitizer)
The desired URL is
https://www.youtube.com/playlist?list=PLHs6JH9ueCokcP2hje8PVPPqjucNJFUvO
It looks like this needs to be updated again. Facebook likes to tack on ?fbclid=PDpsYoABR-dTfrnqEonoNetWrhfTbPsbEcOuxmOjxtPvuWisnIITMpydodLTP (example) to the end of external links.
Originally posted by @a-raccoon in https://github.com/xwipeoutx/undirect/issues/11#issuecomment-462044113