dont-track-me-google icon indicating copy to clipboard operation
dont-track-me-google copied to clipboard

[Suggestion] YouTube support

Open Wxrlds opened this issue 4 years ago • 4 comments

When clicking a link in the description of any YouTube video, it first redirects you to youtube.com/redirect and from there to your desired location. As Google and YouTube belong together it's kind of useless preventing being tracked by google.com but when clicking a link through YouTube they still track you. It would be nice if this addon could also prevent YouTube from modifying links.

Wxrlds avatar Jul 19 '20 17:07 Wxrlds

I looked at a random video with a link in the description (https://www.youtube.com/watch?v=y7h_B7UPaYI) and found the following example:

<a class="yt-simple-endpoint style-scope yt-formatted-string" spellcheck="false" href="/redirect?redir_token=[ some long base64-encoded string ]&amp;q=[ url-encoded absolute URL here ]&amp;v=[ video id ]&amp;event=video_description" rel="nofollow" target="_blank" dir="auto">[ absolute URL here ]</a>

I suppose that the logic from my extension is generic enough that it can work for YouTube, with some small modifications.

I'm not going to add this to my extension, however, because it requires a new extension permission (access to youtube). When a new permission is requested, Chrome disables the extension unil the permission change is explicitly approved (and Firefox pauses updates until explicitly approved). There are alternatives (optional permissions + dynamic content scripts), but that incurs some performance cost.

Links in YouTube descriptions are often not the real URLs anyway. They are often shortened links redirecting to the actual destination, loaded with trackers (affiliate links) to support the content creator who published the video.

Rob--W avatar Jul 19 '20 20:07 Rob--W

Can also be extended into removing &si=XXXXXXXX parameter when sharing it

hatkidchan avatar Nov 16 '23 17:11 hatkidchan

Also there is the &pp= parameter when copying links from a search

1nikolas avatar Jan 19 '24 22:01 1nikolas