YouTube: Hide Watched Videos

Hides watched videos (and shorts) from your YouTube subscriptions page.

< Feedback on YouTube: Hide Watched Videos

Review: OK - script works, but has bugs

Your script is coded wrong. It will conflict with other userscripts. please change

from

    if (window.trustedTypes?.createPolicy) {
        window.trustedTypes.createPolicy('default', {
            createHTML: (string, _sink) => string,
        });
    }

to


if (typeof trustedTypes !== 'undefined' && trustedTypes.defaultPolicy === null) {
  let s = s => s;
  trustedTypes.createPolicy('default', { createHTML: s, createScriptURL: s, createScript: s });
}

Since version 6.5

Ev HausAuthor
§
Posted: 07.04.2025

Thanks. Fixed.

Post reply

Sign in to post a reply.