Question: when activating youtube subtitles, if you try to select a word in the caption of subtitles witch identified in the DOM by `id="caption-window-1"` , the first thing noticed is that : it is not selectable, so to make it selectable, i run this script in the js console using the developer tool on chrome browser: 

```
(function() {
var caption= document.getElementById("caption-window-1");
caption.style.cursor="text";
caption.style["-webkit-user-select"]="all";
            })();

```

its turn perfectly, but the caption still moving when click on it (you can try it by your self on [YouTube](https://www.youtube.com))

so i can't select easily a word in the caption, it still moving whatever i do.

I want to disable the caption movement on onclick event any idea to fix that using javascript ?

Answer: 
Run this script in the console:

```
setInterval(make_subtitles_selectable, 250);
function make_subtitles_selectable(){
    elem=document.querySelector("span.ytp-caption-segment:not([selectable='true']");
    if(elem!=null){
        elem.style.userSelect="text";
        elem.style.cursor="text";
        elem.setAttribute("selectable", "true");
    }
    elem=document.querySelector("#caption-window-1:not([selectable='true']");
    if(elem!=null){
        elem.addEventListener("mousedown", function (event) {
            event.stopPropagation();
        }, true);
        elem.setAttribute("selectable", "true");
    }
}

```
You need to install [capturing](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener) event listeners that call [stopPropagation](https://developer.mozilla.org/en-US/docs/Web/API/Event/stopPropagation) on the event to intercept it before the youtube javascript can process them and supress the default action, i.e. the text selection

[![youtube subtitle event listeners](https://i.stack.imgur.com/5zVdX.png)](https://i.stack.imgur.com/5zVdX.png).