I bought this usb light at the dollar tree and I adjusted the wires and connected them to a cooling fan and I plugged it into my computer and it worked but us this safe?
That would depend on the power requirements of the fan. You only have 5VDC+ available at the USB port at the milliamp capacity. Different computers have different power supplies for their USB port so I could not even try to guess what your system is able to produce. If it worked you MIGHT be OK. I would stop experimenting with my USB ports, it is a very easy way to zap your motherboard.
Comments
you dont have any problem for pc tht i can sure as it uses output from pc.
That would depend on the power requirements of the fan. You only have 5VDC+ available at the USB port at the milliamp capacity. Different computers have different power supplies for their USB port so I could not even try to guess what your system is able to produce. If it worked you MIGHT be OK. I would stop experimenting with my USB ports, it is a very easy way to zap your motherboard.