avi12 / skillshare-player-control

Basic keyboard controls for Skillshare's player.
GNU General Public License v3.0
11 stars 2 forks source link

Skillshare Player Control

Adds basic keyboard controls to the Skillshare player:

Key Description
Left / Right keys Backward/Forward 5 seconds
J/K keys Backward/Forward 10 seconds
Up/Down keys Volume up/down
Space Pause/Play
M Toggle mute
T Toggle Theater Mode
Shift + P Play previous video on playlist
Shift + N Play next video on playlist
< Slow down the video
> Speed up the video
Home/End Beginning/End of video
0-9 Seek to (Number + 0) % , e.g. 10%
F Full-screen
Double-click video Full-screen

Additional features:

  1. Auto-hiding the player controls when being idle in full-screen mode.

Available for:

Made by Avi.

Requirements for setting up

  1. Install Node.js and PNPM
  2. Start a subscription. I recommend using DuckDuckGo to create a temporary account
  3. You can cancel the subscription and freely test the extension for a week

Install dependencies

pnpm i

Start the dev server & run in a test browser

Chrome

pnpm dev

Edge

pnpm dev:edge

Opera

pnpm dev:opera

Firefox

Currently unsupported
Instead, after building you can follow this guide

Build

Chrome/Edge

pnpm build

Opera

pnpm build:opera

Firefox

pnpm build:firefox

Package

Chrome/Edge

pnpm package

Opera

pnpm package:opera

Firefox

pnpm package:firefox

Shorthands

Chrome/Edge

pnpm build:package

Opera

pnpm build:package:opera

Firefox

pnpm build:package:firefox

Contribution

Feel free to contribute! Keep in mind that the license I chose is GPL v3
If you want to fork, make sure to credit Avi and link to this repository