now the scripts are compatible with chrome browser mode