Hi mc127 and welcome to the forum.
You should specify the G4 mac a bit more so we can think of wifi solutions fitting to that. However, dlinks wifi over usb works with macs. Also take a closer look at this list. Once you have the G4 wifi enabled it will work with any router. Good luck!