automatically bot youtube views with proxy

free youtube proxy viewbot

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         automatically bot youtube views with proxy
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  free youtube proxy viewbot
// @author       fredtheceo
// @match        https://www.youtube.com/watch?v=vzSPvrBAd9U*
// @grant        GM_xmlhttpRequest
// @connect      * // Allow any domain for GM_xmlhttpRequest
// ==/UserScript==

(function() {
    'use strict';

    const refreshRate = 10; // seconds
    const viewCount = 5; // total number of views you want to simulate
    const proxyUrl = 'https://your-proxy-url.example.com'; // Replace with your proxy URL

    let counter = 0;

    function loadSession() {
        if (counter < viewCount) {
            console.log(`Viewing (${counter + 1}): ${window.location.href}`);
            counter++;

            // Make a request to the proxy instead of reloading the page directly
            GM_xmlhttpRequest({
                method: "GET",
                url: `${proxyUrl}?targetUrl=${encodeURIComponent(window.location.href)}`,
                onload: function(response) {
                    if (response.status === 200) {
                        console.log('View simulated through proxy.');
                    } else {
                        console.log('Failed to simulate view.');
                    }
                },
                onerror: function() {
                    console.log('Error connecting to proxy.');
                }
            });

            // Refresh the page after the set interval
            setTimeout(() => {
                window.location.reload();
            }, refreshRate * 1000); // convert seconds to milliseconds
        } else {
            console.log(`Completed ${viewCount} views.`);
        }
    }

    // Start the loading session
    loadSession();
})();