Well, it's not clear, let's take your code, for example, if there are not 3 menus, but for example 30, then this function that hides the script simply will not work, that simply will not work and that's it. I already solved this problem by dropping the code to hide GG under the function.
why it would seem that the skins should be executed correctly, but for some reason there are bugs or something else, and the script simply does not see these lines from below that are responsible for hiding gg.
I mean what I want, I am very good at writing scripts, well, that is, I am very good at it, but such bugs are just like gg doesn’t read the script correctly.