We are working in a software company in India, and in our team, we have a lead and he simply doesn't like the developers who try to contribute Stack Overflow in a regular basis (meaning try to hit the rep cap daily). Though we finish out the work in a given period of time, he doesn't want us to contribute to Stack Overflow in our downtime at the office. Rather, he's poking us to provide support for mediocre developers who struggle to complete their task on time.
Yesterday he got very angry, and scolded me. "Don't force me say this once again, it will not be good. Do office work in the office. Take care of your other jobs (Stack Overflow contribution) at home."
See, we are not spending the downtime (unproductive hours in the office) in Facebook or other useless things as our office's other team members do. We are improving our knowledge. Keeping working by looking at the project all the time is impossible.
What should I do in order to continue contributing to Stack Overflow at this context? Should I switch my job to some other company? In Stack Overflow all the high rep users are employed. How is this (contributing to Stack Overflow from office) possible for them?