Capacitor on USB cable?
I guess you're talking about the ferrite bead:



Source: Wikipedia - Ferrite bead

Its purpose is to prevent interference at high frequencies signals.

It may also work without it and with a cable as short as possible.