window.clearInterval(scroll); console.clear(); urls = $$('a'); urls.forEach(function(v,i,a){if (v.id=="video-title-link" && v.href){console.log('\t'+new Date().toLocaleDateString()+'\t'+v.title+'\t'+v.href+'\t'+v.__shady_native_innerHTML.match(/aria-label=\"(.+?)\"/g)?.[0].match(/[\d,]+ views/g)[0]+'\t')}});
在控制台中,其仅作为
undefined
。有人可以修改代码以使其正确返回视图计数吗?谢谢!
我在
html
querySelector
来获得视图。首先,我是由两个父母抬起的,每个e元素,然后致电父母the the the the Views。
<a>
检查了两个频道。它对我有用。注:它可能不是最佳解决方案。如果未来的标记变化可能会显示出不同的内容。