复制以下代码添加到浏览器书签使用~
javascript:(function(){var canvas = document.createElement('canvas');var video = $('video')[0];if($('#videoCut').length > 0){canvas = document.getElementById('videoCut');}else{canvas.setAttribute('id','videoCut');$('body').append(canvas);} if(!video){var iframe = document.getElementsByTagName('iframe')[0];video = iframe.contentWindow.document.getElementsByTagName('video')[0];}canvas.setAttribute('width',video.videoWidth);canvas.setAttribute('height',video.videoHeight);canvas.style.display = 'none';var ctx = canvas.getContext('2d');ctx.drawImage(video,0,0,video.videoWidth,video.videoHeight);var base64 = canvas.toDataURL('images/png');var img = new Image();img.src = base64;const newWin = window.open('','_blank');newWin.document.write(img.outerHTML);newWin.document.close();})()
tampermonkey: 脚本地址
2020-04-10 1977
Lorem ipsum ex vix illud nonummy, novum tation et his. At vix scripta patrioque scribentur, at pro
Powered By SanMVC Copyright © 2021 黔ICP备16011043号-1