automatically bot youtube views with proxy

free youtube proxy viewbot

  1. // ==UserScript==
  2. // @name automatically bot youtube views with proxy
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description free youtube proxy viewbot
  6. // @author fredtheceo
  7. // @match https://www.youtube.com/watch?v=vzSPvrBAd9U*
  8. // @grant GM_xmlhttpRequest
  9. // @connect * // Allow any domain for GM_xmlhttpRequest
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. const refreshRate = 10; // seconds
  16. const viewCount = 5; // total number of views you want to simulate
  17. const proxyUrl = 'https://your-proxy-url.example.com'; // Replace with your proxy URL
  18.  
  19. let counter = 0;
  20.  
  21. function loadSession() {
  22. if (counter < viewCount) {
  23. console.log(`Viewing (${counter + 1}): ${window.location.href}`);
  24. counter++;
  25.  
  26. // Make a request to the proxy instead of reloading the page directly
  27. GM_xmlhttpRequest({
  28. method: "GET",
  29. url: `${proxyUrl}?targetUrl=${encodeURIComponent(window.location.href)}`,
  30. onload: function(response) {
  31. if (response.status === 200) {
  32. console.log('View simulated through proxy.');
  33. } else {
  34. console.log('Failed to simulate view.');
  35. }
  36. },
  37. onerror: function() {
  38. console.log('Error connecting to proxy.');
  39. }
  40. });
  41.  
  42. // Refresh the page after the set interval
  43. setTimeout(() => {
  44. window.location.reload();
  45. }, refreshRate * 1000); // convert seconds to milliseconds
  46. } else {
  47. console.log(`Completed ${viewCount} views.`);
  48. }
  49. }
  50.  
  51. // Start the loading session
  52. loadSession();
  53. })();