xhr-hack.js 665 B

1234567891011121314151617
  1. var IEBinaryToArray_ByteStr_Script =
  2. "<!-- IEBinaryToArray_ByteStr -->\r\n"+
  3. "<script type='text/vbscript'>\r\n"+
  4. "Function IEBinaryToArray_ByteStr(Binary) : IEBinaryToArray_ByteStr = CStr(Binary) : End Function\r\n"+
  5. "Function IEBinaryToArray_ByteStr_Last(Binary)\r\n"+
  6. " Dim lastIndex\r\n"+
  7. " lastIndex = LenB(Binary)\r\n"+
  8. " if lastIndex mod 2 Then\r\n"+
  9. " IEBinaryToArray_ByteStr_Last = Chr( AscB( MidB( Binary, lastIndex, 1 ) ) )\r\n"+
  10. " Else\r\n"+
  11. " IEBinaryToArray_ByteStr_Last = "+'""'+"\r\n"+
  12. " End If\r\n"+
  13. "End Function\r\n"+
  14. "</script>\r\n";
  15. document.write(IEBinaryToArray_ByteStr_Script);