Skip to content

Vikindor/rutube-block-autoplay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Rutube - Block Autoplay

Userscript for browsers that prevents videos on Rutube from starting automatically. Works both on regular video pages and embedded players.

✨ Features

  • Stops autoplay on Rutube video pages.
  • Stops autoplay in embedded Rutube players.
  • Overrides the native video.play() method to block the first automatic play attempt.

πŸš€ Installation

  1. Install Tampermonkey (or another userscript manager).
  2. Install the script from one of the mirrors:

βš™ How it works

  • The script waits until a <video> element appears.
  • It forces autoplay to false and removes the autoplay attribute.
  • On the first call to video.play(), it rejects the promise to prevent autoplay. Any further manual play calls will work normally.

About

Userscript for browsers that blocks video autoplay on Rutube and embeds

Topics

Resources

License

Stars

Watchers

Forks