tp-20,
var rutube_replace = document.getElementById("gallery_video" + image_row);
rutube_replace.oninput = function() {
let txt = 'video';
if(this.value.includes('?p=')) txt = 'video/private';
this.value = this.value.replace('play/embed', txt);
this.value = this.value.replace('shorts', 'video');
};