最近发现了油猴这个东西,发现很好用,可以自己给浏览器写代码,想做个简单的下载按钮,但是发现好像都是加密的,对后台和服务器又不了解,完全不知道从哪下手啊,有哪位大大能给个建议吗。。。
window.onload = function () {
var buttongroup = document.querySelector('#watch8-secondary-actions');
if (buttongroup) {
var a = document.createElement('a');
a.href = '';
a.className = 'yt-uix-clickcard';
a.textContent = '下载';
a.download = document.querySelector('#eow-title').title;
buttongroup.appendChild(a);
}
}