Skip to content

Instantly share code, notes, and snippets.

@Ran350
Last active April 6, 2022 04:54
Show Gist options
  • Save Ran350/f4e61cd04047cce2712ca7882ed853d6 to your computer and use it in GitHub Desktop.
Save Ran350/f4e61cd04047cce2712ca7882ed853d6 to your computer and use it in GitHub Desktop.
Bookmarklet for double speed playback
// ↓をURLにコピペする
javascript:{document.querySelector("video").playbackRate = parseFloat(prompt("倍速(小数)").replace(/[0-9.]/g,(s)=>{return String.fromCharCode(s.charCodeAt(0) - 65248)}));}
// 見やすくするとこんな感じ
// 全角で「1.7」と入力しても大丈夫
document.querySelector("video").playbackRate = parseFloat(
prompt("倍速(小数)").replace(/[0-9.]/g, (s) => {
return String.fromCharCode(s.charCodeAt(0) - 65248)
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment