Home>

There is a CMS to manage the site, you need to insert a video instruction in the personal account of the user, but there is no direct access to it, I tried to insert JS ', the code is executed but nothing displays anything into the console

<
Script Type= "Text /JavaScript" >
Let Elem= Document.getelementsByTagname ("DIV");
document.addeventlistener ('Click', Func, False);
FUNCTION FUNC () {
    For (Let i= 0; I <
 elem.length; I ++) {
        If (Elem [i] .classList.contains ('LoggedInStateButtons')) {
            document.addeventlistener ('Click', Funct, False);
            Function Funct () {
                For (Let i= 0; I <
 elem.length; I ++) {
                    If (Elem [i] .classList.contains ('Documents')) {
                        document.addeventlistener ('Click', Funct, False);
                        Function Funct () {
                            For (Let i= 0; I <
 elem.length; I ++) {
                                If (Elem [i] .classList.contains ('uploaded-documents')) {
                                    Console.log ('Chln')
                                    Let Paret= Document.GetElementsByClassName ('Upload__Table') [0];
                                    Let D= Document.CreateElement ('Div');
                                    d.innerhtml= '<
iframe width= "560" height= "315" src= "https://www.youtube.com/embed/70y94zg1-ju" title= "YouTube Video Player" FrameBorder= "0" Allow= "Accelerometer; AutoPlay; Clipboard -Write; Encrypted-media; Gyroscope; Picture-in-picture "AllowFullScreen >
≪
/iframe >
'
                                    d.classname= 'vid_verif';
                                    paaret.appendchild (D);
                                };
                            };
                        };
                    };
                };
            };
        };
    };
};
≪
/script >

I do not understand anything. Code -delusional.

Igor2021-09-14 12:59:21

I alternately checking if the desired block appeared, if you appear, I am built a block, I js reassign a couple of weeks, do not judge strictly

Макс Петренко2021-09-14 13:06:31