Tank slappers can be induced by three main harmonics in the bike. The typical ones involved the front wheel oscillating back and forth and kick up around 27-33MPH, 75-85MPH, and again around 120MPH. If you end up in that situation, then either speed up or slow down to get out of the speed that excites the harmonic. If you have plenty of power, then speeding up is probably easiest. If you are low on power, then chop the throttle and slow down. You really won't have much time to react to a tank slapper other than throttle response, since they are so violent and immediate.
Bicycles can get the same effect. With a bicycle, if you find yourself in a weave or a "slapper", then the only real option other than braking is to stop the waveform that is going through the bike. You can do that simply by clamping your knees around the top tube. That effectively adds a node to the waveform, which means that an even more powerful wave is needed to excite a harmonic. You can think of it like a jump rope. It is easy to make shake a jump rope to get a curve that goes up and down. It takes a lot more strength to get a node to stand in the middle, and is almost impossible to get two nodes to stand in the middle. That's the same theory with clamping your legs on the top tube of a bicycle. You make it too hard for the existing energy to induce a harmonic. I don't know if this would actually help on a motorcycle, but it couldn't hurt to try as you are twisting your throttle or rolling off it.
FYI, I've had a couple tank slappers in my life. My first was at 80 on my 1982 Seca 750. The cause of that was a sticky swingarm pivot. It came on immediately, but I just gassed it and got through. I had a few recently with my 350f, but they were the slow weave style instead of the crazy handlebar harmonics. I just chopped the throttle and slowed out of the speed range, and they were caused by a worn swingarm. Hondaman fixed that problem for me. ;-)
By the way, you'll notice that the tankslapper in the video ended as soon as he started to slow down. They usually only occur at given speeds. So, if you find yourself in one, just change speed!
Camelman