mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-09-16 18:54:43 -04:00
behavior for vimeo - click on <video> elements
This commit is contained in:
parent
9848c41d5f
commit
9cb9172a4d
1 changed files with 7 additions and 0 deletions
7
umbra/behaviors.d/vimeo.js
Normal file
7
umbra/behaviors.d/vimeo.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
//^https?://(?:www\.)?vimeo.com/.*$
|
||||
|
||||
var videoElements = document.getElementsByTagName('video');
|
||||
for (var i = 0; i < videoElements.length; i++) {
|
||||
videoElements[i].play();
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue