Toolbar. How to hide unused tools

Hey! I’ve noticed, that my toolbar became a bit junky. I want to remove 90% of unused items from there, and display just select box and 2 addons. How can I do that?

On this topic I found just one solution, and it requires scripting. But im hopeless at it :frowning: Where should I put the script to make such changes?

Help me, please