StackOverflow is an extremely valuable resource for all programmers. I've not seen the option anywhere, but a yearly donation would definitely be something I'd do for a substantial amount (substantial to me as a student, so it's not the moon but not a beer either).
My following suggestion is a very unpopular one, but it is this: If you are a student, use the money you would have donated to StackOverflow to purchase a book or a tool that will help you to learn better and become an expert. If you are an expert, contribute your time to StackOverflow (instead of money). Money is easy to get compared to content. What helps StackOverflow grow is quality content. I am also interested…
I've tried that before, many times. Unfortunately when you are trying to do real work those books are many times useless. Example, I kept trying to build a newtonian physics simulator so I got a Statics and Dynamics mechanical engineering book. The book was a text book for Mechanical engineering students and yet the examples they teach you are for toy problems. I could not generalize them to real world scenarios. To actually build the physics simulator I had to scour the internet until I found something that actually explained what I needed in an easy to understand manner [1]. And that still was not enough. I still had to use more online sources to find out all the other pieces, like the separating axes theorem for collision detection.
So no, I would not rely on books anymore, at least not exclusively since they often do not provide a full picture. One last thing, books seem to be getting progressively worse in my experience. All of this is anecdotal of course.