a
当前为
// ==UserScript==
// @name YouTube URL Logger
// @description a
// @match https://www.youtube.com/
// @version 0.0.1.20250508185639
// @namespace https://greasyfork.org/users/1435046
// ==/UserScript==
(function() {
const log = () =>
[...document.querySelectorAll('a[href*="/watch"]')]
.map(a => a.href)
.filter((u, i, arr) => arr.indexOf(u) === i)
.forEach(url => console.log(url));
log();
new MutationObserver(log).observe(document.body, { childList: true, subtree: true });
})();