Automated build for v0.01
This commit is contained in:
25
plugins/af_zz_vidmute/init.js
Normal file
25
plugins/af_zz_vidmute/init.js
Normal file
@ -0,0 +1,25 @@
|
||||
require(['dojo/_base/kernel', 'dojo/ready'], function (dojo, ready) {
|
||||
ready(function () {
|
||||
PluginHost.register(PluginHost.HOOK_ARTICLE_RENDERED_CDM, function (row) {
|
||||
if (row) {
|
||||
|
||||
row.select("video").each(function (v) {
|
||||
v.muted = true;
|
||||
});
|
||||
}
|
||||
|
||||
return true;
|
||||
});
|
||||
|
||||
PluginHost.register(PluginHost.HOOK_ARTICLE_RENDERED, function (row) {
|
||||
if (row) {
|
||||
|
||||
row.select("video").each(function (v) {
|
||||
v.muted = true;
|
||||
});
|
||||
}
|
||||
|
||||
return true;
|
||||
});
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user