2017-02-13 16:21:38 +00:00
|
|
|
require(['dojo/_base/kernel', 'dojo/ready'], function (dojo, ready) {
|
|
|
|
ready(function () {
|
|
|
|
PluginHost.register(PluginHost.HOOK_ARTICLE_RENDERED_CDM, function (row) {
|
|
|
|
if (row) {
|
|
|
|
|
2021-02-18 18:51:18 +00:00
|
|
|
row.querySelectorAll("video").forEach(function (v) {
|
2018-09-11 08:46:10 +00:00
|
|
|
v.muted = true;
|
2017-02-13 16:21:38 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
});
|
|
|
|
|
|
|
|
PluginHost.register(PluginHost.HOOK_ARTICLE_RENDERED, function (row) {
|
|
|
|
if (row) {
|
|
|
|
|
2021-02-18 18:51:18 +00:00
|
|
|
row.querySelectorAll("video").forEach(function (v) {
|
2018-09-11 08:46:10 +00:00
|
|
|
v.muted = true;
|
2017-02-13 16:21:38 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
});
|
|
|
|
});
|
2018-09-11 08:46:10 +00:00
|
|
|
});
|