cross-platform (except opera) current script getting