hello everyone! so this issue has been Fixed for me for a long time now,
i am just here to share a script that might help you with unliking videos!
why? well if you are Fixed then this will be a fast way to return the youtube algorithm close to how it was before, Or if you Don't Know if you are fixed or not you can try this out, and check your liked videos later, unknown videos appear? you are not fixed, they dont appear, well congrats! you are fixed. OR if you are Not fixed you can try this out to check if the malware likes videos, and to bring back the algorithm close to how it was before!
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async function deleteLikedVideos() {
'use strict';
var items = document.querySelectorAll('ytd-menu-renderer > yt-icon-button.dropdown-trigger > button[aria-label]');
var out;
for (var i = 0; i < items.length; i++) {
items[i].click();
out = setTimeout(function () {
if (document.querySelector('tp-yt-paper-listbox.style-scope.ytd-menu-popup-renderer').lastElementChild) {
document.querySelector('tp-yt-paper-listbox.style-scope.ytd-menu-popup-renderer').lastElementChild.click();
}
}, 100);
await sleep(500); // sleep cause browser can not handle the process
clearTimeout(out);
}
}
deleteLikedVideos();
paste it in console (Ctrl+Shift+I)
Note: Credits to zeeshan arshad on quora for the script