Anti-Robot Detection Script

Bypass robot detection and appear as a human to websites.

  1. // ==UserScript==
  2. // @name Anti-Robot Detection Script
  3. // @namespace http://tampermonkey.net/
  4. // @version 3
  5. // @description Bypass robot detection and appear as a human to websites.
  6. // @author Wrldz
  7. // @license MIT
  8. // @match *://*/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. var isScriptEnabled = true;
  16.  
  17. // Check for anti-robot detection mechanisms
  18. var antiRobotElements = document.querySelectorAll("[id*='captcha'],[class*='captcha'],[name*='captcha'],[id*='recaptcha'],[class*='recaptcha'],[name*='recaptcha']");
  19. var antiRobotDetected = antiRobotElements.length > 0;
  20.  
  21. // Random mouse movements
  22. var simulateMouseMovement = function() {
  23. var dx = Math.floor(Math.random() * 6) - 3;
  24. var dy = Math.floor(Math.random() * 6) - 3;
  25. var event = new MouseEvent('mousemove', {
  26. view: window,
  27. bubbles: false,
  28. cancelable: true,
  29. clientX: window.innerWidth/2 + dx,
  30. clientY: window.innerHeight/2 + dy
  31. });
  32. window.dispatchEvent(event);
  33. };
  34.  
  35. // Random typing delays
  36. var simulateTypingDelay = function() {
  37. var delay = Math.floor(Math.random() * 1000) + 500;
  38. return delay;
  39. };
  40.  
  41. // Simulate human behavior
  42. var simulateHumanBehavior = function() {
  43. simulateMouseMovement();
  44. var delay = simulateTypingDelay();
  45. return delay;
  46. };
  47.  
  48. var originalSetTimeout = window.setTimeout;
  49. window.setTimeout = function(callback, delay) {
  50. if (!isScriptEnabled || antiRobotDetected) {
  51. return originalSetTimeout.apply(this, arguments);
  52. }
  53.  
  54. var newCallback = function() {
  55. var result = callback.apply(this, arguments);
  56. if(typeof result === 'boolean'){
  57. return result || simulateHumanBehavior(); // Return original result or simulate human behavior
  58. }else{
  59. return result;
  60. }
  61. };
  62. return originalSetTimeout.call(this, newCallback, delay);
  63. };
  64.  
  65. var originalSetInterval = window.setInterval;
  66. window.setInterval = function(callback, delay) {
  67. if (!isScriptEnabled || antiRobotDetected) {
  68. return originalSetInterval.apply(this, arguments);
  69. }
  70.  
  71. var newCallback = function() {
  72. var result = callback.apply(this, arguments);
  73. if(typeof result === 'boolean'){
  74. return result || simulateHumanBehavior(); // Return original result or simulate human behavior
  75. }else{
  76. return result;
  77. }
  78. };
  79. return originalSetInterval.call(this, newCallback, delay);
  80. };
  81.  
  82. // Allow the user to toggle the script on and off
  83. document.addEventListener('keydown', function(event) {
  84. if (event.code === 'KeyR' && event.ctrlKey && event.altKey) { // Ctrl + Alt + R to toggle the script
  85. isScriptEnabled = !isScriptEnabled;
  86. console.log('Anti-Robot Detection Script ' + (isScriptEnabled ? 'enabled' : 'disabled'));
  87. }
  88. });
  89. })();