OK, so the answer is..........'it is not illegal'.
If the next question is ......'is it incredibly bad practice to obscure your field of view?', the answer is......'no'.
I'm sure we all sympathise with the problems of flying an F16 vis a vis toilet functions, but they are not really relevant wrt MD-80 operations.