An Iranian-born woman who blogged about surviving in a world filled with "injustice and diseases" opened fire at YouTube's California headquarters because she was angry at a site she believed was suppressing her videos, police said on Wednesday.