mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-04-19 23:35:54 -04:00
behavior for vimeo - click on <video> elements
This commit is contained in:
parent
9848c41d5f
commit
9cb9172a4d
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…
x
Reference in New Issue
Block a user