add af_zz_noautoplay plugin

This commit is contained in:
Andrew Dolgov
2015-07-31 13:42:22 +03:00
parent d8e8e24e34
commit 1dbc8d6062
2 changed files with 64 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
class Af_Zz_NoAutoPlay extends Plugin {
private $host;
function about() {
return array(1.0,
"Don't autoplay HTML5 videos",
"fox");
}
function init($host) {
$this->host = $host;
}
function get_js() {
return file_get_contents(__DIR__ . "/init.js");
}
function api_version() {
return 2;
}
}
?>