make unAPI bookmarklet compatible - works in tests.