Skip to content

Commit

Permalink
add largest video detection
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuat committed Dec 3, 2017
1 parent 073d980 commit 4f2b2d4
Show file tree
Hide file tree
Showing 36 changed files with 1 addition and 0 deletions.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified alfred/018BBE1D-F229-4E9A-B10A-8C15F2091A17.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified alfred/6E4EEBD5-0AB8-4986-8EC0-1CD707F41689.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified alfred/9BD52D80-13AD-492C-9A4E-1FF2F4F501B3.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified alfred/icon.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions alfred/info.plist
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ if (['Safari', 'Safari Technology Preview'].indexOf(frontmostAppName) > -1) {
availableVideo = frontmostApp.doJavaScript("document.querySelectorAll('video').length;", { in: frontmostApp.documents[0] })
if (availableVideo) {
frontmostApp.doJavaScript("var videoArray = Array.from(document.querySelectorAll('video')).map(function (video) { return video.clientHeight; }); var videoPosition = videoArray.indexOf(Math.max(...videoArray)); var selectedVideoElement = document.querySelectorAll('video')[videoPosition];", { in: frontmostApp.documents[0] })
frontmostApp.doJavaScript(code, { in: frontmostApp.documents[0] })
stdout = undefined
} else {
Expand Down
Empty file modified icons/icns/airplay.icns
100644 → 100755
Empty file.
Empty file modified icons/icns/fullscreen.icns
100644 → 100755
Empty file.
Empty file modified icons/icns/pip.icns
100644 → 100755
Empty file.
Empty file modified icons/icns/video.icns
100644 → 100755
Empty file.
Empty file modified icons/png/airplay-1024.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified icons/png/airplay-128.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified icons/png/airplay-256.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified icons/png/airplay-32.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified icons/png/airplay-512.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified icons/png/airplay-64.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified icons/png/fullscreen-1024.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified icons/png/fullscreen-128.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified icons/png/fullscreen-256.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified icons/png/fullscreen-32.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified icons/png/fullscreen-512.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified icons/png/fullscreen-64.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified icons/png/pip-1024.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified icons/png/pip-128.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified icons/png/pip-256.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified icons/png/pip-32.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified icons/png/pip-512.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified icons/png/pip-64.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified icons/png/video-1024.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified icons/png/video-128.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified icons/png/video-256.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified icons/png/video-32.png
100644 → 100755
Empty file modified icons/png/video-512.png
100644 → 100755
Empty file modified icons/png/video-64.png
100644 → 100755
Empty file modified icons/sketch/html5.sketch
100644 → 100755
Empty file.

0 comments on commit 4f2b2d4

Please sign in to comment.