trackless-links icon indicating copy to clipboard operation
trackless-links copied to clipboard

Please make sure it does not interfere with the Vinegar extension

Open albi opened this issue 1 year ago • 6 comments

Currently when Trackless Links is active (even without changing media controls) Vinegar is not working properly. When I want to change the speed of the video the controls for it won't show up.

albi avatar Oct 22 '25 06:10 albi

Hey @albi,

Thanks so much for this excellent bug report! This is a classic (and very tricky) extension conflict, and you've diagnosed it perfectly.

Trackless Links (with its Browser Tweaks for media, as seen in the app's screenshots) and Vinegar are both trying to modify the YouTube player at the same time.

Even if you have the media tweaks toggled off in my app, the content script that checks if it needs to run is likely being injected onto the page, and that initial presence is interfering with Vinegar's script before it can properly load and replace the player.

This is super helpful to know. The best long-term fix is for me to make my script "smarter" so it detects if Vinegar is active and then automatically "backs off" to let it do its job. I've added this to my to-do list to investigate for a future update.

In the meantime, the best workaround is to go into Safari's settings (Settings > Safari > Extensions > Trackless Links) and set the permission for youtube.com to "Off." That will stop my app from injecting any scripts on that specific domain, allowing Vinegar to run without any interference.

Thanks again for the report!

aloth avatar Nov 11 '25 10:11 aloth

great response. just bought the pro version of trackless links :)

albi avatar Nov 11 '25 10:11 albi

the current version blocks vinegar completely. so i have to deactivate trackless links pro on my mac. if i do so, vinegar works.

on iOS and iPadOS i can see a differnt behavior. there everything seems fine.

albi avatar Dec 30 '25 19:12 albi

Hi @albi — fixed in 833dd43 (will ship in 4.1).

What changed: the content script now detects when another video-handling extension (Vinegar leaves #vinegar-video, video[data-vinegar], or document.documentElement.dataset.vinegar* on the page) and, if found on a YouTube domain, skips all five media tweaks (Show Native Controls, Block Autoplay, Default Speed, Pause on Load, Enable PiP) entirely on that page. Vinegar gets the YouTube player to itself with no interference from us.

The detection is conservative — it only suppresses on youtube.com / youtube-nocookie.com, and only the media tweaks. Everything else (URL cleaning, cookie banner handling, redirects, Trackless link normalization, etc.) keeps working normally on YouTube and everywhere else.

The workaround you were using (turning off the youtube.com permission entirely) is no longer needed — you can re-enable Trackless Links for youtube.com and Vinegar should run cleanly alongside.

Will leave this open until 4.1 ships and you can confirm it's working again on macOS.

aloth avatar Apr 26 '26 07:04 aloth

Nice one! Thank you! Will give a feedback.

albi avatar Apr 26 '26 17:04 albi

Looks good from my perspective

albi avatar Apr 29 '26 10:04 albi