anti.js 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. window.chrome = {
  2. "app": {
  3. "isInstalled": false,
  4. "InstallState": {
  5. "DISABLED": "disabled",
  6. "INSTALLED": "installed",
  7. "NOT_INSTALLED": "not_installed"
  8. },
  9. "RunningState": {
  10. "CANNOT_RUN": "cannot_run",
  11. "READY_TO_RUN": "ready_to_run",
  12. "RUNNING": "running"
  13. }
  14. },
  15. "runtime": {
  16. "OnInstalledReason": {
  17. "CHROME_UPDATE": "chrome_update",
  18. "INSTALL": "install",
  19. "SHARED_MODULE_UPDATE": "shared_module_update",
  20. "UPDATE": "update"
  21. },
  22. "OnRestartRequiredReason": {
  23. "APP_UPDATE": "app_update",
  24. "OS_UPDATE": "os_update",
  25. "PERIODIC": "periodic"
  26. },
  27. "PlatformArch": {
  28. "ARM": "arm",
  29. "ARM64": "arm64",
  30. "MIPS": "mips",
  31. "MIPS64": "mips64",
  32. "X86_32": "x86-32",
  33. "X86_64": "x86-64"
  34. },
  35. "PlatformNaclArch": {
  36. "ARM": "arm",
  37. "MIPS": "mips",
  38. "MIPS64": "mips64",
  39. "X86_32": "x86-32",
  40. "X86_64": "x86-64"
  41. },
  42. "PlatformOs": {
  43. "ANDROID": "android",
  44. "CROS": "cros",
  45. "LINUX": "linux",
  46. "MAC": "mac",
  47. "OPENBSD": "openbsd",
  48. "WIN": "win"
  49. },
  50. "RequestUpdateCheckStatus": {
  51. "NO_UPDATE": "no_update",
  52. "THROTTLED": "throttled",
  53. "UPDATE_AVAILABLE": "update_available"
  54. }
  55. }
  56. };
  57. Object.defineProperties(navigator, {
  58. webdriver: {
  59. get: () => undefined
  60. },
  61. plugins: {
  62. get: () => [{
  63. 0: {
  64. type: "application/x-google-chrome-pdf",
  65. suffixes: "pdf",
  66. description: "Portable Document Format",
  67. enabledPlugin: Plugin
  68. },
  69. description: "Portable Document Format",
  70. filename: "internal-pdf-viewer",
  71. length: 1,
  72. name: "Chrome PDF Plugin"
  73. }, {
  74. 0: {
  75. type: "application/pdf",
  76. suffixes: "pdf",
  77. description: "",
  78. enabledPlugin: Plugin
  79. },
  80. description: "",
  81. filename: "mhjfbmdgcfjbbpaeojofohoefgiehjai",
  82. length: 1,
  83. name: "Chrome PDF Viewer"
  84. }]
  85. }
  86. });