Paramount+ Arrow Key Skip

Enables the use of left/right arrow keys skipping through videos.

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         Paramount+ Arrow Key Skip
// @namespace    http://tampermonkey.net/
// @version      2026-01-17
// @description  Enables the use of left/right arrow keys skipping through videos.
// @author       MizuchiKun
// @match        https://www.paramountplus.com/shows/video/*
// @icon         https://www.paramountplus.com/favicon.ico
// @grant        none
// ==/UserScript==

(function() {

    // 'Spript-wide' globals.
    let videoPlayer = null;
    const SkipDuration = 10;

    // Would've preferred to just simulate the J and L key presses to just use Paramount's skipping code (in case of some unknown functionality), but it didn't wanna work . . .
    // Specifically, I think I just didn't target the right element to trigger the skipping? Or they're checking that 'isTrusted' bool on the keypress events.

    window.addEventListener("load", (e) => {
        // Need to delay getting videoPlayer because I guess they're loading/creating that part via. script?
        setTimeout(() => {
            videoPlayer = document.getElementsByTagName('video')[0];
            console.log(`MizuchiKun: Initialised Paramount+ Skip with arrow keys.`);
        }, 2000);
    });

    window.addEventListener("keydown", (e) => {
        if (e.code == 'ArrowLeft')
        {
            videoPlayer.currentTime -= SkipDuration;
            console.log(`MizuchiKun: Rewound by ${SkipDuration} seconds.`);
        }
        else if (e.code == 'ArrowRight')
        {
            videoPlayer.currentTime += SkipDuration;
            console.log(`MizuchiKun: Fast-forwarded by ${SkipDuration} seconds.`);
        }
    });

})();