DEV Community

Caner Demirci
Caner Demirci

Posted on

2

Netflix-My Wish-English

I struggle with English for years. I read books, articles, news... listen, talk, watch movies, series in English. Netflix has subtitles but I want them with two seconds delay. I wrote to Netflix about this but they didn't hear me! Then I wrote this code. (Saved into browser's code snippets). I'm watching video for ten seconds without reading subtitles then code rewinds the video ten seconds and I'm listening and reading subtitles.

setInterval(function () {
    const videoCanvas = document.querySelector(
        '[data-uia="player"]'
    );

    videoCanvas.click();

    setTimeout(function () {
        const prevBtn = document.querySelector('[data-uia="control-back10"]');
        prevBtn.click();
    }, 1000);
}, 20000);
Enter fullscreen mode Exit fullscreen mode

Top comments (2)

Collapse
 
dmahely profile image
Doaa Mahely

That’s a creative way to reinforce language learning. You might want to look into making it a browser plugin as I believe it will be beneficial to many.

Collapse
 
canerdemirci profile image
Caner Demirci

Yes plugin is a good idea.

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay