Toxblh / youtube-speed-control

MIT License
24 stars 9 forks source link

Autosave settings #17

Open Toxblh opened 2 years ago

tjkirch commented 1 year ago

Does this mean the extension would remember playback speed per channel? That's what I'd like - some video creators talk very slowly.

Toxblh commented 1 year ago

looks like it possible

function getChannelIdFromObject() {
    // This will parse the window object 'ytInitialPlayerResponse'
    let raw_data = window.ytInitialPlayerResponse;
    if (raw_data.videoDetails) {
        return raw_data.videoDetails.channelId;
    }
    return null;
}

console.log(getChannelIdFromObject());