1 dojo.addOnLoad(function() {
2 PluginHost.register(PluginHost.HOOK_ARTICLE_RENDERED_CDM, function(row) {
4 console.log("af_zz_noautoplay!");
7 var videos = row.getElementsByTagName("video");
8 console.log(row.innerHTML);
10 for (i = 0; i < videos.length; i++) {
12 videos[i].removeAttribute("autoplay");
14 videos[i].onclick = function() {
15 this.paused ? this.play() : this.pause();
23 PluginHost.register(PluginHost.HOOK_ARTICLE_RENDERED, function(row) {
25 var videos = row.getElementsByTagName("video");
27 for (i = 0; i < videos.length; i++) {
28 videos[i].removeAttribute("autoplay");
30 videos[i].onclick = function() {
31 this.paused ? this.play() : this.pause();