Last active
July 23, 2020 10:04
-
-
Save yazinsai/65144a42ce387de26eed14d1b662122a to your computer and use it in GitHub Desktop.
Revisions
-
yazinsai revised this gist
Jul 23, 2020 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,4 +4,5 @@ const speedUp = (v) => v.playbackRate = 2; const videos = elemsIn('video', document); const iframes = elemsIn('iframe', document); videos.forEach(speedUp); iframes.forEach((f) => elemsIn('video', f.contentWindow.document).forEach(speedUp)); -
yazinsai created this gist
Jul 23, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ const elemsIn = (tag, parent) => Array.from(parent.getElementsByTagName(tag)); const speedUp = (v) => v.playbackRate = 2; const videos = elemsIn('video', document); const iframes = elemsIn('iframe', document); iframes.forEach((f) => elemsIn('video', f.contentWindow.document).forEach(speedUp));