25 Zeilen
Kein EOL
513 B
JavaScript
25 Zeilen
Kein EOL
513 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.select("video").each(function (v) {
|
|
v.setAttribute("muted", true);
|
|
});
|
|
}
|
|
|
|
return true;
|
|
});
|
|
|
|
PluginHost.register(PluginHost.HOOK_ARTICLE_RENDERED, function (row) {
|
|
if (row) {
|
|
|
|
row.select("video").each(function (v) {
|
|
v.setAttribute("muted", true);
|
|
});
|
|
}
|
|
|
|
return true;
|
|
});
|
|
});
|
|
}); |