Code Monkey home page Code Monkey logo

youtube-custom-speed's Introduction

Youtube Custom Speed ⏩

Youtube Custom Speed is a browser extension which allows you to easily change YouTube playback rate to a custom value.

Currently available on the Chrome Web Store with over 3,500 users and a 4.96 ⭐ average rating.

Now also available on Add-ons for Firefox!

About

Youtube Custom Speed lets you play any Youtube video at any speed you like, from 0.0125x to 16x!

Use the options menu to set your preferred playback rate values. Then, change the speed using buttons at the bottom of the video. It also cooperates with the default Youtube keyboard shortcuts - Shift + , and Shift + .

youtube-custom-speed's People

Contributors

nizioleque avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

youtube-custom-speed's Issues

Support for Keyboard Shortcuts on Non-English Keyboards

The current implementation uses the key property of KeyboardEvent to detect key presses. This approach works well for English keyboards but causes issues on non-English keyboards, such as German keyboards, where the physical keys do not produce the same characters.

For example:

  • On English keyboards, Shift + , produces < and Shift + . produces >.
  • On German keyboards, these combinations produce ; and : respectively, leading to non-default shortcuts.

Exemplary Solution:

master...MartinNiederl:youtube-custom-speed:master

A more robust solution would be to listen to the physical keys instead:

document.body.addEventListener('keydown', e => {
    if (e.shiftKey && e.code === 'Period') {
        e.preventDefault();
        e.stopPropagation();
        kbshort(true);
    }
    else if (e.shiftKey && e.code === 'Comma') {
        e.preventDefault();
        e.stopPropagation();
        kbshort(false);
    }
}, { capture: true });

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.