The script is simple and works PERFECTLY. I suggest you edit the title to indicate that it removes not only the Explore button but also the Shorts button, since there is no other script that does that.
And there is one other thing to consider: The code identifies the buttons by name (Explore and Shorts), that means that it works ONLY if the user has the Youtube interface in English. Keep in mind that Youtube is used all over the world in dozens of different languages. Each user should change the word "Explore" in the code to the one that corresponds to their language.
In my case, I use Youtube in Spanish so I had to replace "Explore" with "Explorar" to make it work. Apparently "Shorts" has not been translated by Youtube, it's still "Shorts" even in Spanish. I don't know in other languages. But in case it was translated, the user should always change it in the script code to make it work.
The script is simple and works PERFECTLY. I suggest you edit the title to indicate that it removes not only the Explore button but also the Shorts button, since there is no other script that does that.
And there is one other thing to consider: The code identifies the buttons by name (Explore and Shorts), that means that it works ONLY if the user has the Youtube interface in English. Keep in mind that Youtube is used all over the world in dozens of different languages. Each user should change the word "Explore" in the code to the one that corresponds to their language.
In my case, I use Youtube in Spanish so I had to replace "Explore" with "Explorar" to make it work. Apparently "Shorts" has not been translated by Youtube, it's still "Shorts" even in Spanish. I don't know in other languages. But in case it was translated, the user should always change it in the script code to make it work.