├── README.md └── webm-looper.user.js /README.md: -------------------------------------------------------------------------------- 1 | # Webm Looper Userscript 2 | 3 | A userscript which automatically enables looping on Webm videos in your browser. 4 | This requires you to have a userscript engine installed, one like ~~GreaseMonkey~~, Scriptish or TamperMonkey. 5 | 6 | By default it only loops single .webm files (urls which end in .webm). Include any page you'd like and it should work on that page. Note that it loops every video, not just webm. 7 | 8 | # [Click here to install](https://github.com/WhatIsThisImNotGoodWithComputers/webm-looper-userscript/raw/master/webm-looper.user.js) 9 | 10 | # Test .webm file 11 | 12 | Github does strange things to my test webm file (darkens and loading thingy, but lightens up every replay) so for now please user your own or this file for testing. 13 | 14 | [http://video.webmfiles.org/big-buck-bunny_trailer.webm](http://video.webmfiles.org/big-buck-bunny_trailer.webm) 15 | -------------------------------------------------------------------------------- /webm-looper.user.js: -------------------------------------------------------------------------------- 1 | // ==UserScript== 2 | // @name Webm Looper 3 | // @namespace com.whatisthisimnotgoodwithcomputers.webmlooper 4 | // @author WhatIsThisImNotGoodWithComputers 5 | // @description A userscript which automatically enables looping on Webm videos in your browser. 6 | // @include *.webm 7 | // @run-at document-start 8 | // @version 1.0 9 | // @grant none 10 | // ==/UserScript== 11 | 12 | var vids = document.getElementsByTagName("video"); 13 | for (i = 0; i < vids.length; i++) vids[i].setAttribute("loop", "true"); 14 | void 0; 15 | --------------------------------------------------------------------------------