mirror of
https://github.com/SoPat712/videospeed.git
synced 2026-04-26 22:23:09 -04:00
Release v5.1.4
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
/* Runs via chrome.tabs.executeScript(allFrames) in the same isolated world as inject.js */
|
||||
(function () {
|
||||
try {
|
||||
if (typeof getPrimaryVideoElement !== "function") {
|
||||
return null;
|
||||
}
|
||||
var v = getPrimaryVideoElement();
|
||||
if (!v) return null;
|
||||
return {
|
||||
speed: v.playbackRate,
|
||||
preferred: !v.paused
|
||||
};
|
||||
} catch (e) {
|
||||
return null;
|
||||
}
|
||||
})();
|
||||
Reference in New Issue
Block a user