xwipeoutx / undirect

A simple chrome extension that removes this tracking and redirection from Facebook and Google search results
https://chrome.google.com/webstore/detail/undirect/dohbiijnjeiejifbgfdhfknogknkglio
BSD 2-Clause "Simplified" License
60 stars 13 forks source link

Facebook tracking prevention broken :( #14

Open xwipeoutx opened 5 years ago

xwipeoutx commented 5 years ago

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

a-raccoon commented 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