Simplied script, fixed some errors

It now works when you change pages on Google (I don't know why it was
not working before) and don't inject scripts.