You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
510 B
JavaScript
26 lines
510 B
JavaScript
require(['dojo/_base/kernel', 'dojo/ready'], function (dojo, ready) {
|
|
ready(function () {
|
|
PluginHost.register(PluginHost.HOOK_ARTICLE_RENDERED_CDM, function (row) {
|
|
if (row) {
|
|
|
|
row.querySelectorAll("video").forEach(function (v) {
|
|
v.muted = true;
|
|
});
|
|
}
|
|
|
|
return true;
|
|
});
|
|
|
|
PluginHost.register(PluginHost.HOOK_ARTICLE_RENDERED, function (row) {
|
|
if (row) {
|
|
|
|
row.querySelectorAll("video").forEach(function (v) {
|
|
v.muted = true;
|
|
});
|
|
}
|
|
|
|
return true;
|
|
});
|
|
});
|
|
});
|