何らかの設定を追加して動画をアップロードする際に「追加HTML」を読み込まないようにするためのプログラム修正が必要だと思います。具体的には lib/outputrenderers.php の740行目あたりを修正することになると思います。
/**
* The standard tags (typically skip links) that should be output just inside
* the start of the <body> tag. Designed to be called in theme layout.php files.
*
* @return string HTML fragment.
*/
public function standard_top_of_body_html() {
global $CFG;
$output = $this->page->requires->get_top_of_body_code($this);
if ($this->page->pagelayout !== 'embedded' && !empty($CFG->additionalhtmltopofbody)) {
$output .= "\n".$CFG->additionalhtmltopofbody;
}
// Give subsystems an opportunity to inject extra html content. The callback
// must always return a string containing valid html.
foreach (\core_component::get_core_subsystems() as $name => $path) {
if ($path) {
$output .= component_callback($name, 'before_standard_top_of_body_html', [], '');
}
}
// Give plugins an opportunity to inject extra html content. The callback
// must always return a string containing valid html.
$pluginswithfunction = get_plugins_with_function('before_standard_top_of_body_html', 'lib.php');
foreach ($pluginswithfunction as $plugins) {
foreach ($plugins as $function) {
$output .= $function();
}
}
$output .= $this->maintenance_warning();
return $output;
}
ウェブブラウザでHTML (ソースコード) を表示して直接動画ファイルにアクセスできるかと思いますが、右クリック禁止用JavaScript以外の別の方法をお考えになってはいかがでしょうか。