通过浏览器控制台筛选哔哩哔哩视频网址。
const links = document.getElementsByTagName('a');
// 遍历所有链接并查找匹配的网址
for (const link of links) {
const href = link.href;
// 使用正则表达式匹配类似的网址
const urlRegex = /https:\/\/www\.bilibili\.com\/video\/[A-Za-z0-9]+\/?/;
if (urlRegex.test(href)) {
console.log("匹配到的网址: " + href);
}
}