globalSpeed icon indicating copy to clipboard operation
globalSpeed copied to clipboard

浏览器拓展的页面没法进行倍速设置,希望重新捕获下实践

Open jdAction opened this issue 2 years ago • 3 comments

extension://bcneiehcbgahghfmgigmblcgkhihehad/listen1.html 这是 listen1的插件 打开插件后是一个扩展页面 但是没法启用倍速

jdAction avatar Jun 27 '23 11:06 jdAction

Hi. No extension can run inside another extension's file. Can only run https, http, and local files (if user enables it).

polywock avatar Jun 27 '23 15:06 polywock

Can we overcome this problem? If it is a limitation of the browser itself, can you contact the official of Edge for functional development?

jdAction avatar Jul 10 '23 09:07 jdAction

Hi. You can use this bookmarklet on listen1. Create any bookmark and change the URL to the code below. The name can be anything.

javascript:(() => {
    const speed = parseFloat(prompt("Speed? ", 2));
    document.querySelectorAll("video, audio").forEach(v => { v.playbackRate = speed });
})()

polywock avatar Jul 10 '23 23:07 polywock