百度网盘 Mac 版本播放是跳转到网页播放的,如何加快速度播放呢?v 站上有人写成了油猴的脚本,内容如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
Element.prototype._attachShadow = Element.prototype.attachShadow; Element.prototype.attachShadow = function (){ return this._attachShadow({mode:"open"}); };
(function() { 'use strict';
$("<select style='position:fixed;left:1rem;top:5rem;width:5rem'><option>1</option><option>1.2</option><option>1.5</option><option>1.8</option></select>") .appendTo("html") .on("change",function(){ var rate = $(this).val() console.log(rate) var video = $("#video-root")[0].shadowRoot.querySelector("video"); video.playbackRate = rate; document.title = "播放速度"+ video.playbackRate })
})();
|
作者地址 http://jaxer.cc/page/ff4bd7ecfed448dcb503e3f7fcc1f044