Quality toggler - How to?

I need to make one…can anyone help?