Recently youtube started to add "&t=..." to links all over the feed and in the history, after you watched a video. If this doesn't break things for you, simply skip.
If it does, you already know how. It's pretty obvious and shows nothing less than a complete lack of QA at YT.
I've been told here that we're not a client, but a product. But how to keep being a product with such level of QA?? Guess we have to find a few ways ourselves.
Bookmarklet way:
javascript:(() => {
for (const a of document.querySelectorAll('a')) {
if (a.href.includes('&t=')) {
a.href = a.href.replace(/&t=\d+/, '');
}
}
})();
TamperMonkey way:
// ==UserScript==
// @name Remove youtube timestamps
// @namespace http://tampermonkey.net/
// @version 2024-11-23
// @description Remove youtube timestamps
// @author Me myself
// @match https://www.youtube.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
function removeTs() {
for (const a of document.querySelectorAll('a')) {
if (a.href.includes('&t=')) {
a.href = a.href.replace(/&t=\d+/, '');
}
}
}
setInterval(removeTs, 1000);
document.body.addEventListener('yt-navigate-finish', removeTs);
removeTs();
})();
Feel free to use or suggest more!