From some quick research, one model is the IOGEAR GWU637. I've never used it, so that's not a recommendation or anything, just an example.
https://www.raspberrypi.org/forums/viewtopic.php?t=199588
Just tape it to the case with a short USB cable. You can even set up a firewall on the thing so your ancient unpatched Mac isn't pulling its pants down and bending over for the modern Internet scan bots. You could even set up a transparent web proxy on the Pi so the ancient root certs on that version of OSX don't break everything.
Then all you have to worry about is the way out of date web browser not being able to handle all of the new web frameworks. Pretty soon you're asking yourself why you didn't go and find a just-as-cheap and much less outdated laptop instead.