automatically bot youtube views with proxy

free youtube proxy viewbot

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==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();
})();