Last active
October 26, 2022 06:26
-
-
Save retronym/4b9ec234b83c6549ef29df6b73a8bff0 to your computer and use it in GitHub Desktop.
Beardie Config for Stan Sports and Kayo (https://github.com/Bonapara/beardie)
This file contains 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 characters
BSStrategy = { | |
version: 1, | |
displayName: "Kayo", | |
accepts: { | |
method: "predicateOnTab", | |
format: "%K LIKE[c] '*kayosports.com.au/*/*'", | |
args: ["URL"] | |
}, | |
toggle: function () { console.log("toggle"); document.querySelector('[aria-label="Toggle play/pause"]').click(); }, | |
pause: function () { console.log("pause") }, | |
previous: function () { console.log("previous"); document.querySelector('[aria-label="Rewind 15 seconds"]').click(); }, | |
next: function () { console.log("next"); document.querySelector('[aria-label="Skip 15 seconds"]').click(); }, | |
favorite: function () { } | |
} |
This file contains 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 characters
BSStrategy = { | |
version: 1, | |
displayName: "Stan", | |
accepts: { | |
method: "predicateOnTab", | |
format: "%K LIKE[c] '*play.stan.com.au/programs/*'", | |
args: ["URL"] | |
}, | |
isPlaying: function () { return !document.querySelector('#prestoPlay').paused; }, | |
toggle: function () { document.querySelector('.vjs-play-control').click(); }, | |
previous: function () { document.querySelector('.vjs-seek-back-control').click(); }, | |
next: function () { document.querySelector('.vjs-seek-forward-control').click(); }, | |
pause: function () { document.querySelector('#prestoPlay').pauseVideo(); }, | |
favorite: function () { } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment