initial porting

port to Opera 15 and later, and Chrome