Add support for Chrome 26

Script rewritten to support Chrome 26. It was tested too with Firefox 19. Both on windows.