Spaces:
Running
**Goal**
Browse filesCreate a functional HTML website that automates YouTube view generation by opening popup windows containing a specified video URL for a user-defined duration and number of repetitions.
**Return format**
Provide complete, production-ready HTML code that includes:
- A single-page website with input fields for video URL, desired view count, and watch duration
- A "ЗАПУСТИТЬ накрутку" (Start Generation) button
- JavaScript functionality that opens popup windows sequentially based on user parameters
- Clean, user-friendly interface with Russian language labels
- Responsive design that works across modern browsers
**Warnings**
- Modern browsers block popup windows by default; include clear instructions or warnings for users to allow popups from the site
- Implement safeguards to prevent accidental infinite loops (validate that watch duration is at least 15 seconds as specified)
- Consider browser resource limitations when opening multiple windows sequentially
- Ensure each popup closes automatically after the specified duration before opening the next one
- Validate that view count is a positive integer to prevent errors
- Handle cases where the video URL format might be invalid
- Account for popup blockers that may prevent the script from functioning
**Context**
The website serves as a view generation tool where users input three parameters:
1. YouTube video URL (the target video)
2. Number of views needed (how many times to open the video)
3. Watch duration in seconds (minimum 15 seconds, maximum unlimited)
The workflow operates as follows:
- User fills in all three fields
- Upon clicking the launch button, a popup window opens displaying the YouTube video
- The popup remains open for exactly the duration specified by the user
- After the timer expires, the popup automatically closes
- Immediately after closing, a new popup
- README.md +6 -3
- components/footer.js +29 -0
- components/header.js +45 -0
- index.html +196 -19
- script.js +260 -0
- style.css +102 -19
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji: 🦀
|
| 4 |
colorFrom: yellow
|
| 5 |
colorTo: purple
|
|
|
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: ViewBoost Pro 🚀
|
|
|
|
| 3 |
colorFrom: yellow
|
| 4 |
colorTo: purple
|
| 5 |
+
emoji: 🐳
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://huggingface.co/deepsite).
|
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomFooter extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
.footer {
|
| 7 |
+
background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
|
| 8 |
+
backdrop-filter: blur(10px);
|
| 9 |
+
border-top: 1px solid rgba(255,255,255,0.2);
|
| 10 |
+
margin-top: auto;
|
| 11 |
+
}
|
| 12 |
+
</style>
|
| 13 |
+
<footer class="footer mt-12">
|
| 14 |
+
<div class="container mx-auto px-4 py-6">
|
| 15 |
+
<div class="text-center">
|
| 16 |
+
<p class="text-gray-600 text-sm">
|
| 17 |
+
© 2024 ViewBoost Pro. Инструмент для автоматизации просмотров YouTube.
|
| 18 |
+
</p>
|
| 19 |
+
<p class="text-gray-500 text-xs mt-2">
|
| 20 |
+
Используйте ответственно и в соответствии с правилами платформы.
|
| 21 |
+
</p>
|
| 22 |
+
</div>
|
| 23 |
+
</div>
|
| 24 |
+
</footer>
|
| 25 |
+
`;
|
| 26 |
+
}
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
customElements.define('custom-footer', CustomFooter);
|
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomHeader extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
.header {
|
| 7 |
+
background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
|
| 8 |
+
backdrop-filter: blur(10px);
|
| 9 |
+
border-bottom: 1px solid rgba(255,255,255,0.2);
|
| 10 |
+
}
|
| 11 |
+
|
| 12 |
+
@keyframes float {
|
| 13 |
+
0%, 100% { transform: translateY(0px); }
|
| 14 |
+
50% { transform: translateY(-5px); }
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
.logo-icon {
|
| 18 |
+
animation: float 3s ease-in-out infinite;
|
| 19 |
+
}
|
| 20 |
+
</style>
|
| 21 |
+
<header class="header">
|
| 22 |
+
<div class="container mx-auto px-4 py-4">
|
| 23 |
+
<div class="flex items-center justify-between">
|
| 24 |
+
<div class="flex items-center space-x-3">
|
| 25 |
+
<div class="logo-icon">
|
| 26 |
+
<i data-feather="trending-up" class="text-primary-600"></i>
|
| 27 |
+
</div>
|
| 28 |
+
<div>
|
| 29 |
+
<h1 class="text-xl font-bold text-gray-900">ViewBoost Pro</h1>
|
| 30 |
+
<p class="text-xs text-gray-600">Автоматизация просмотров</p>
|
| 31 |
+
</div>
|
| 32 |
+
</div>
|
| 33 |
+
<div class="flex items-center space-x-4">
|
| 34 |
+
<a href="#" class="text-gray-600 hover:text-primary-600 transition-colors">
|
| 35 |
+
<i data-feather="help-circle"></i>
|
| 36 |
+
</a>
|
| 37 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="ru">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>ViewBoost Pro - Автоматическая накрутка просмотров YouTube</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 11 |
+
<script>
|
| 12 |
+
tailwind.config = {
|
| 13 |
+
theme: {
|
| 14 |
+
extend: {
|
| 15 |
+
colors: {
|
| 16 |
+
primary: {
|
| 17 |
+
50: '#f0f9ff',
|
| 18 |
+
100: '#e0f2fe',
|
| 19 |
+
200: '#bae6fd',
|
| 20 |
+
300: '#7dd3fc',
|
| 21 |
+
400: '#38bdf8',
|
| 22 |
+
500: '#0ea5e9',
|
| 23 |
+
600: '#0284c7',
|
| 24 |
+
700: '#0369a1',
|
| 25 |
+
800: '#075985',
|
| 26 |
+
900: '#0c4a6e',
|
| 27 |
+
},
|
| 28 |
+
secondary: {
|
| 29 |
+
50: '#fdf4ff',
|
| 30 |
+
100: '#fae8ff',
|
| 31 |
+
200: '#f5d0fe',
|
| 32 |
+
300: '#f0abfc',
|
| 33 |
+
400: '#e879f9',
|
| 34 |
+
500: '#d946ef',
|
| 35 |
+
600: '#c026d3',
|
| 36 |
+
700: '#a21caf',
|
| 37 |
+
800: '#86198f',
|
| 38 |
+
900: '#701a75',
|
| 39 |
+
}
|
| 40 |
+
}
|
| 41 |
+
}
|
| 42 |
+
}
|
| 43 |
+
}
|
| 44 |
+
</script>
|
| 45 |
+
</head>
|
| 46 |
+
<body class="bg-gradient-to-br from-primary-50 to-secondary-50 min-h-screen">
|
| 47 |
+
<!-- Header Component -->
|
| 48 |
+
<script src="components/header.js"></script>
|
| 49 |
+
<custom-header></custom-header>
|
| 50 |
+
|
| 51 |
+
<main class="container mx-auto px-4 py-8">
|
| 52 |
+
<div class="max-w-2xl mx-auto">
|
| 53 |
+
<!-- Warning Banner -->
|
| 54 |
+
<div class="bg-yellow-50 border border-yellow-200 rounded-lg p-4 mb-6">
|
| 55 |
+
<div class="flex items-start">
|
| 56 |
+
<i data-feather="alert-triangle" class="text-yellow-600 mt-1 mr-3"></i>
|
| 57 |
+
<div>
|
| 58 |
+
<h3 class="text-yellow-800 font-semibold mb-1">Важно!</h3>
|
| 59 |
+
<p class="text-yellow-700 text-sm">
|
| 60 |
+
Для работы инструмента необходимо разрешить всплывающие окна в вашем браузере.
|
| 61 |
+
Современные браузеры блокируют их по умолчанию для защиты пользователей.
|
| 62 |
+
</p>
|
| 63 |
+
</div>
|
| 64 |
+
</div>
|
| 65 |
+
</div>
|
| 66 |
+
|
| 67 |
+
<!-- Main Card -->
|
| 68 |
+
<div class="bg-white rounded-xl shadow-lg p-6 mb-6">
|
| 69 |
+
<div class="text-center mb-8">
|
| 70 |
+
<h1 class="text-3xl font-bold text-gray-900 mb-2">ViewBoost Pro</h1>
|
| 71 |
+
<p class="text-gray-600">Автоматическая накрутка просмотров YouTube</p>
|
| 72 |
+
</div>
|
| 73 |
+
|
| 74 |
+
<!-- Input Form -->
|
| 75 |
+
<form id="generationForm" class="space-y-6">
|
| 76 |
+
<!-- Video URL -->
|
| 77 |
+
<div>
|
| 78 |
+
<label for="videoUrl" class="block text-sm font-medium text-gray-700 mb-2">
|
| 79 |
+
<i data-feather="video" class="inline w-4 h-4 mr-2"></i>
|
| 80 |
+
URL видео YouTube
|
| 81 |
+
</label>
|
| 82 |
+
<input
|
| 83 |
+
type="url"
|
| 84 |
+
id="videoUrl"
|
| 85 |
+
name="videoUrl"
|
| 86 |
+
placeholder="https://www.youtube.com/watch?v=..."
|
| 87 |
+
class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500 transition-colors"
|
| 88 |
+
required
|
| 89 |
+
>
|
| 90 |
+
<p class="text-xs text-gray-500 mt-1">Убедитесь, что ссылка корректна и видео доступно</p>
|
| 91 |
+
</div>
|
| 92 |
+
|
| 93 |
+
<!-- View Count -->
|
| 94 |
+
<div>
|
| 95 |
+
<label for="viewCount" class="block text-sm font-medium text-gray-700 mb-2">
|
| 96 |
+
<i data-feather="eye" class="inline w-4 h-4 mr-2"></i>
|
| 97 |
+
Количество просмотров
|
| 98 |
+
</label>
|
| 99 |
+
<input
|
| 100 |
+
type="number"
|
| 101 |
+
id="viewCount"
|
| 102 |
+
name="viewCount"
|
| 103 |
+
min="1"
|
| 104 |
+
max="100"
|
| 105 |
+
placeholder="10"
|
| 106 |
+
class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-primary-500 transition-colors"
|
| 107 |
+
required
|
| 108 |
+
>
|
| 109 |
+
<p class="text-xs text-gray-500 mt-1">Рекомендуем не более 100 просмотров за сессию</p>
|
| 110 |
+
</div>
|
| 111 |
+
|
| 112 |
+
<!-- Watch Duration -->
|
| 113 |
+
<div>
|
| 114 |
+
<label for="watchDuration" class="block text-sm font-medium text-gray-700 mb-2">
|
| 115 |
+
<i data-feather="clock" class="inline w-4 h-4 mr-2"></i>
|
| 116 |
+
Длительность просмотра (секунды)
|
| 117 |
+
</label>
|
| 118 |
+
<input
|
| 119 |
+
type="number"
|
| 120 |
+
id="watchDuration"
|
| 121 |
+
name="watchDuration"
|
| 122 |
+
min="15"
|
| 123 |
+
placeholder="30"
|
| 124 |
+
class="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary-500 focus:border-border-primary-500 transition-colors"
|
| 125 |
+
required
|
| 126 |
+
>
|
| 127 |
+
<p class="text-xs text-gray-500 mt-1">Минимальная длительность - 15 секунд</p>
|
| 128 |
+
</div>
|
| 129 |
+
|
| 130 |
+
<!-- Start Button -->
|
| 131 |
+
<button
|
| 132 |
+
type="submit"
|
| 133 |
+
id="startButton"
|
| 134 |
+
class="w-full bg-gradient-to-r from-primary-600 to-secondary-600 text-white py-4 px-6 rounded-lg font-semibold text-lg hover:from-primary-700 hover:to-secondary-700 transition-all duration-300 transform hover:scale-105 focus:outline-none focus:ring-4 focus:ring-primary-300"
|
| 135 |
+
>
|
| 136 |
+
<i data-feather="play" class="inline w-5 h-5 mr-2"></i>
|
| 137 |
+
ЗАПУСТИТЬ накрутку
|
| 138 |
+
</button>
|
| 139 |
+
</form>
|
| 140 |
+
</div>
|
| 141 |
+
|
| 142 |
+
<!-- Progress Section -->
|
| 143 |
+
<div id="progressSection" class="hidden bg-white rounded-xl shadow-lg p-6">
|
| 144 |
+
<div class="flex items-center justify-between mb-4">
|
| 145 |
+
<h3 class="text-lg font-semibold text-gray-900">Прогресс накрутки</h3>
|
| 146 |
+
<span id="progressText" class="text-sm text-gray-600">0/0</span>
|
| 147 |
+
</div>
|
| 148 |
+
|
| 149 |
+
<!-- Progress Bar -->
|
| 150 |
+
<div class="w-full bg-gray-200 rounded-full h-3 mb-4">
|
| 151 |
+
<div id="progressBar" class="bg-gradient-to-r from-primary-500 to-secondary-500 h-3 rounded-full transition-all duration-500" style="width: 0%"></div>
|
| 152 |
+
</div>
|
| 153 |
+
|
| 154 |
+
<!-- Current Status -->
|
| 155 |
+
<div class="flex items-center text-sm text-gray-600">
|
| 156 |
+
<i data-feather="monitor" class="w-4 h-4 mr-2"></i>
|
| 157 |
+
<span id="currentStatus">Ожидание запуска...</span>
|
| 158 |
+
</div>
|
| 159 |
+
|
| 160 |
+
<!-- Stop Button -->
|
| 161 |
+
<button
|
| 162 |
+
id="stopButton"
|
| 163 |
+
class="mt-4 w-full bg-red-600 text-white py-3 px-6 rounded-lg font-semibold hover:bg-red-700 transition-colors"
|
| 164 |
+
>
|
| 165 |
+
<i data-feather="square" class="inline w-4 h-4 mr-2"></i>
|
| 166 |
+
Остановить процесс
|
| 167 |
+
</button>
|
| 168 |
+
</div>
|
| 169 |
+
|
| 170 |
+
<!-- Instructions -->
|
| 171 |
+
<div class="bg-blue-50 border border-blue-200 rounded-lg p-6 mt-6">
|
| 172 |
+
<h3 class="text-lg font-semibold text-blue-900 mb-3 flex items-center">
|
| 173 |
+
<i data-feather="info" class="w-5 h-5 mr-2"></i>
|
| 174 |
+
Как это работает?
|
| 175 |
+
</h3>
|
| 176 |
+
<ol class="list-decimal list-inside space-y-2 text-blue-800">
|
| 177 |
+
<li>Введите корректную ссылку на YouTube видео</li>
|
| 178 |
+
<li>Укажите желаемое количество просмотров (рекомендуем 10-50)</li>
|
| 179 |
+
<li>Установите длительность просмотра (минимум 15 секунд)</li>
|
| 180 |
+
<li>Нажмите "ЗАПУСТИТЬ накрутку"</li>
|
| 181 |
+
<li>Разрешите всплывающие о��на в браузере</li>
|
| 182 |
+
<li>Система автоматически откроет и закроет окна с видео</li>
|
| 183 |
+
</ol>
|
| 184 |
+
</div>
|
| 185 |
+
</div>
|
| 186 |
+
</main>
|
| 187 |
+
|
| 188 |
+
<!-- Footer Component -->
|
| 189 |
+
<script src="components/footer.js"></script>
|
| 190 |
+
<custom-footer></custom-footer>
|
| 191 |
+
|
| 192 |
+
<script src="script.js"></script>
|
| 193 |
+
<script>feather.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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// ViewBoost Pro - Main JavaScript functionality
|
| 2 |
+
|
| 3 |
+
class ViewBoostPro {
|
| 4 |
+
constructor() {
|
| 5 |
+
this.isRunning = false;
|
| 6 |
+
this.currentView = 0;
|
| 7 |
+
this.totalViews = 0;
|
| 8 |
+
this.watchDuration = 0;
|
| 9 |
+
this.videoUrl = '';
|
| 10 |
+
this.popupWindows = [];
|
| 11 |
+
this.timeoutIds = [];
|
| 12 |
+
|
| 13 |
+
this.initializeEventListeners();
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
initializeEventListeners() {
|
| 17 |
+
const form = document.getElementById('generationForm');
|
| 18 |
+
const stopButton = document.getElementById('stopButton');
|
| 19 |
+
|
| 20 |
+
form.addEventListener('submit', (e) => this.handleFormSubmit(e));
|
| 21 |
+
stopButton.addEventListener('click', () => this.stopGeneration());
|
| 22 |
+
|
| 23 |
+
// Input validation
|
| 24 |
+
this.setupInputValidation();
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
setupInputValidation() {
|
| 28 |
+
const viewCountInput = document.getElementById('viewCount');
|
| 29 |
+
const durationInput = document.getElementById('watchDuration');
|
| 30 |
+
|
| 31 |
+
viewCountInput.addEventListener('input', (e) => {
|
| 32 |
+
let value = parseInt(e.target.value);
|
| 33 |
+
if (value > 100) {
|
| 34 |
+
e.target.value = 100;
|
| 35 |
+
this.showNotification('Для стабильной работы рекомендуется не более 100 просмотров за сессию', 'warning');
|
| 36 |
+
}
|
| 37 |
+
});
|
| 38 |
+
|
| 39 |
+
durationInput.addEventListener('input', (e) => {
|
| 40 |
+
let value = parseInt(e.target.value);
|
| 41 |
+
if (value < 15) {
|
| 42 |
+
e.target.value = 15;
|
| 43 |
+
this.showNotification('Минимальная длительность просмотра - 15 секунд', 'warning');
|
| 44 |
+
}
|
| 45 |
+
});
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
handleFormSubmit(e) {
|
| 49 |
+
e.preventDefault();
|
| 50 |
+
|
| 51 |
+
const videoUrl = document.getElementById('videoUrl').value;
|
| 52 |
+
const viewCount = parseInt(document.getElementById('viewCount').value);
|
| 53 |
+
const watchDuration = parseInt(document.getElementById('watchDuration').value);
|
| 54 |
+
|
| 55 |
+
// Validate inputs
|
| 56 |
+
if (!this.validateInputs(videoUrl, viewCount, watchDuration)) {
|
| 57 |
+
return;
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
this.startGeneration(videoUrl, viewCount, watchDuration);
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
validateInputs(videoUrl, viewCount, watchDuration) {
|
| 64 |
+
// Validate YouTube URL
|
| 65 |
+
if (!this.isValidYouTubeUrl(videoUrl)) {
|
| 66 |
+
this.showNotification('Пожалуйста, введите корректную ссылку на YouTube видео', 'error');
|
| 67 |
+
return false;
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
// Validate view count
|
| 71 |
+
if (viewCount < 1 || viewCount > 100) {
|
| 72 |
+
this.showNotification('Количество просмотров должно быть от 1 до 100', 'error');
|
| 73 |
+
return false;
|
| 74 |
+
}
|
| 75 |
+
|
| 76 |
+
// Validate watch duration
|
| 77 |
+
if (watchDuration < 15) {
|
| 78 |
+
this.showNotification('Длительность просмотра должна быть не менее 15 секунд', 'error');
|
| 79 |
+
return false;
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
return true;
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
isValidYouTubeUrl(url) {
|
| 86 |
+
const youtubeRegex = /^(https?:\/\/)?(www\.)?(youtube\.com|youtu\.?be)\/.+$/;
|
| 87 |
+
return youtubeRegex.test(url);
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
startGeneration(videoUrl, viewCount, watchDuration) {
|
| 91 |
+
this.isRunning = true;
|
| 92 |
+
this.currentView = 0;
|
| 93 |
+
this.totalViews = viewCount;
|
| 94 |
+
this.watchDuration = watchDuration;
|
| 95 |
+
this.videoUrl = videoUrl;
|
| 96 |
+
|
| 97 |
+
// Show progress section
|
| 98 |
+
document.getElementById('progressSection').classList.remove('hidden');
|
| 99 |
+
document.getElementById('progressSection').classList.add('fade-in');
|
| 100 |
+
|
| 101 |
+
// Update UI
|
| 102 |
+
this.updateProgress();
|
| 103 |
+
|
| 104 |
+
// Start the first view
|
| 105 |
+
this.openNextView();
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
openNextView() {
|
| 109 |
+
if (!this.isRunning || this.currentView >= this.totalViews) {
|
| 110 |
+
this.completeGeneration();
|
| 111 |
+
return;
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
this.currentView++;
|
| 115 |
+
this.updateProgress();
|
| 116 |
+
|
| 117 |
+
// Open popup window
|
| 118 |
+
this.openPopupWindow();
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
openPopupWindow() {
|
| 122 |
+
const popupWidth = 640;
|
| 123 |
+
const popupHeight = 390;
|
| 124 |
+
const left = (screen.width - popupWidth) / 2;
|
| 125 |
+
const top = (screen.height - popupHeight) / 2;
|
| 126 |
+
|
| 127 |
+
try {
|
| 128 |
+
const popup = window.open(
|
| 129 |
+
this.videoUrl,
|
| 130 |
+
`viewboost_${this.currentView}`,
|
| 131 |
+
`width=${popupWidth},height=${popupHeight},left=${left},top=${top},resizable=yes,scrollbars=yes`
|
| 132 |
+
);
|
| 133 |
+
|
| 134 |
+
if (popup) {
|
| 135 |
+
this.popupWindows.push(popup);
|
| 136 |
+
|
| 137 |
+
// Set timeout to close popup and open next one
|
| 138 |
+
const timeoutId = setTimeout(() => {
|
| 139 |
+
this.closeCurrentPopup();
|
| 140 |
+
this.openNextView();
|
| 141 |
+
}, this.watchDuration * 1000);
|
| 142 |
+
|
| 143 |
+
this.timeoutIds.push(timeoutId);
|
| 144 |
+
} else {
|
| 145 |
+
this.handlePopupBlocked();
|
| 146 |
+
}
|
| 147 |
+
} catch (error) {
|
| 148 |
+
this.handlePopupError(error);
|
| 149 |
+
}
|
| 150 |
+
}
|
| 151 |
+
|
| 152 |
+
closeCurrentPopup() {
|
| 153 |
+
if (this.popupWindows.length > 0) {
|
| 154 |
+
const popup = this.popupWindows.shift();
|
| 155 |
+
if (popup && !popup.closed) {
|
| 156 |
+
popup.close();
|
| 157 |
+
}
|
| 158 |
+
}
|
| 159 |
+
}
|
| 160 |
+
|
| 161 |
+
handlePopupBlocked() {
|
| 162 |
+
this.showNotification('Всплывающие окна заблокированы! Пожалуйста, разрешите их для этого сайта.', 'error');
|
| 163 |
+
this.stopGeneration();
|
| 164 |
+
}
|
| 165 |
+
|
| 166 |
+
handlePopupError(error) {
|
| 167 |
+
console.error('Popup error:', error);
|
| 168 |
+
this.showNotification('Ошибка при открытии окна. Попробуйте снова.', 'error');
|
| 169 |
+
this.stopGeneration();
|
| 170 |
+
}
|
| 171 |
+
|
| 172 |
+
updateProgress() {
|
| 173 |
+
const progressBar = document.getElementById('progressBar');
|
| 174 |
+
const progressText = document.getElementById('progressText');
|
| 175 |
+
const currentStatus = document.getElementById('currentStatus');
|
| 176 |
+
|
| 177 |
+
const percentage = (this.currentView / this.totalViews) * 100;
|
| 178 |
+
progressBar.style.width = `${percentage}%`;
|
| 179 |
+
progressText.textContent = `${this.currentView}/${this.totalViews}`;
|
| 180 |
+
|
| 181 |
+
if (this.isRunning) {
|
| 182 |
+
currentStatus.textContent = `Запуск просмотра ${this.currentView} из ${this.totalViews}`;
|
| 183 |
+
} else {
|
| 184 |
+
currentStatus.textContent = 'Процесс завершен';
|
| 185 |
+
}
|
| 186 |
+
}
|
| 187 |
+
|
| 188 |
+
stopGeneration() {
|
| 189 |
+
this.isRunning = false;
|
| 190 |
+
|
| 191 |
+
// Clear all timeouts
|
| 192 |
+
this.timeoutIds.forEach(timeoutId => clearTimeout(timeoutId));
|
| 193 |
+
this.timeoutIds = [];
|
| 194 |
+
|
| 195 |
+
// Close all popup windows
|
| 196 |
+
this.popupWindows.forEach(popup => {
|
| 197 |
+
if (popup && !popup.closed) {
|
| 198 |
+
popup.close();
|
| 199 |
+
}
|
| 200 |
+
});
|
| 201 |
+
this.popupWindows = [];
|
| 202 |
+
|
| 203 |
+
this.showNotification('Процесс накрутки остановлен', 'info');
|
| 204 |
+
this.updateProgress();
|
| 205 |
+
}
|
| 206 |
+
|
| 207 |
+
completeGeneration() {
|
| 208 |
+
this.isRunning = false;
|
| 209 |
+
this.showNotification(`Накрутка завершена! Обработано ${this.totalViews} просмотров.`, 'success');
|
| 210 |
+
this.updateProgress();
|
| 211 |
+
}
|
| 212 |
+
|
| 213 |
+
showNotification(message, type = 'info') {
|
| 214 |
+
// Create notification element
|
| 215 |
+
const notification = document.createElement('div');
|
| 216 |
+
notification.className = `fixed top-4 right-4 p-4 rounded-lg shadow-lg transform transition-all duration-300 fade-in ${
|
| 217 |
+
type === 'error' ? 'bg-red-100 border border-red-300 text-red-800' :
|
| 218 |
+
type === 'warning' ? 'bg-yellow-100 border border-yellow-300 text-yellow-800' :
|
| 219 |
+
type === 'success' ? 'bg-green-100 border border-green-300 text-green-800' :
|
| 220 |
+
'bg-blue-100 border border-blue-300 text-blue-800'
|
| 221 |
+
}`;
|
| 222 |
+
|
| 223 |
+
notification.innerHTML = `
|
| 224 |
+
<div class="flex items-center">
|
| 225 |
+
<i data-feather="${
|
| 226 |
+
type === 'error' ? 'alert-circle' :
|
| 227 |
+
type === 'warning' ? 'alert-triangle' :
|
| 228 |
+
type === 'success' ? 'check-circle' :
|
| 229 |
+
'info'
|
| 230 |
+
}" class="w-5 h-5 mr-2"></i>
|
| 231 |
+
<span>${message}</span>
|
| 232 |
+
</div>
|
| 233 |
+
`;
|
| 234 |
+
|
| 235 |
+
document.body.appendChild(notification);
|
| 236 |
+
feather.replace();
|
| 237 |
+
|
| 238 |
+
// Remove notification after 5 seconds
|
| 239 |
+
setTimeout(() => {
|
| 240 |
+
notification.classList.add('opacity-0', 'transform', 'scale-95');
|
| 241 |
+
setTimeout(() => {
|
| 242 |
+
if (notification.parentNode) {
|
| 243 |
+
notification.parentNode.removeChild(notification);
|
| 244 |
+
}
|
| 245 |
+
}, 300);
|
| 246 |
+
}, 5000);
|
| 247 |
+
}
|
| 248 |
+
}
|
| 249 |
+
|
| 250 |
+
// Initialize the application when DOM is loaded
|
| 251 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 252 |
+
new ViewBoostPro();
|
| 253 |
+
});
|
| 254 |
+
|
| 255 |
+
// Utility function to format seconds into minutes and seconds
|
| 256 |
+
function formatDuration(seconds) {
|
| 257 |
+
const minutes = Math.floor(seconds / 60);
|
| 258 |
+
const remainingSeconds = seconds % 60;
|
| 259 |
+
return `${minutes}:${remainingSeconds.toString().padStart(2, '0')`;
|
| 260 |
+
}
|
|
@@ -1,28 +1,111 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
font-size: 15px;
|
| 14 |
-
margin-bottom: 10px;
|
| 15 |
-
margin-top: 5px;
|
| 16 |
}
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
padding: 16px;
|
| 22 |
-
border: 1px solid lightgray;
|
| 23 |
-
border-radius: 16px;
|
| 24 |
}
|
| 25 |
|
| 26 |
-
.
|
| 27 |
-
|
|
|
|
| 28 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* Custom styles for ViewBoost Pro */
|
| 2 |
+
|
| 3 |
+
/* Smooth scrolling */
|
| 4 |
+
html {
|
| 5 |
+
scroll-behavior: smooth;
|
| 6 |
+
}
|
| 7 |
+
|
| 8 |
+
/* Custom scrollbar */
|
| 9 |
+
::-webkit-scrollbar {
|
| 10 |
+
width: 8px;
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
::-webkit-scrollbar-track {
|
| 14 |
+
background: #f1f1f1;
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
::-webkit-scrollbar-thumb {
|
| 18 |
+
background: linear-gradient(to bottom, #0ea5e9, #d946ef);
|
| 19 |
+
border-radius: 4px;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
::-webkit-scrollbar-thumb:hover {
|
| 23 |
+
background: linear-gradient(to bottom, #0284c7, #c026d3);
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
/* Loading animation */
|
| 27 |
+
@keyframes pulse {
|
| 28 |
+
0%, 100% {
|
| 29 |
+
opacity: 1;
|
| 30 |
+
}
|
| 31 |
+
50% {
|
| 32 |
+
opacity: 0.5;
|
| 33 |
+
}
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
.loading {
|
| 37 |
+
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
| 38 |
}
|
| 39 |
|
| 40 |
+
/* Fade in animation */
|
| 41 |
+
@keyframes fadeIn {
|
| 42 |
+
from {
|
| 43 |
+
opacity: 0;
|
| 44 |
+
transform: translateY(10px);
|
| 45 |
+
}
|
| 46 |
+
to {
|
| 47 |
+
opacity: 1;
|
| 48 |
+
transform: translateY(0);
|
| 49 |
+
}
|
| 50 |
}
|
| 51 |
|
| 52 |
+
.fade-in {
|
| 53 |
+
animation: fadeIn 0.5s ease-in-out;
|
|
|
|
|
|
|
|
|
|
| 54 |
}
|
| 55 |
|
| 56 |
+
/* Button hover effects */
|
| 57 |
+
.btn-hover {
|
| 58 |
+
transition: all 0.3s ease;
|
|
|
|
|
|
|
|
|
|
| 59 |
}
|
| 60 |
|
| 61 |
+
.btn-hover:hover {
|
| 62 |
+
transform: translateY(-2px);
|
| 63 |
+
box-shadow: 0 10px 25px rgba(14, 165, 233, 0.15);
|
| 64 |
}
|
| 65 |
+
|
| 66 |
+
/* Gradient text */
|
| 67 |
+
.gradient-text {
|
| 68 |
+
background: linear-gradient(135deg, #0ea5e9 0%, #d946ef 100%);
|
| 69 |
+
-webkit-background-clip: text;
|
| 70 |
+
-webkit-text-fill-color: transparent;
|
| 71 |
+
background-clip: text;
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
/* Glass morphism effect */
|
| 75 |
+
.glass {
|
| 76 |
+
background: rgba(255, 255, 255, 0.25);
|
| 77 |
+
backdrop-filter: blur(10px);
|
| 78 |
+
border: 1px solid rgba(255, 255, 255, 0.18);
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
/* Focus styles for accessibility */
|
| 82 |
+
.focus-primary:focus {
|
| 83 |
+
outline: 2px solid #0ea5e9;
|
| 84 |
+
outline-offset: 2px;
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
/* Custom input styles */
|
| 88 |
+
.input-custom {
|
| 89 |
+
transition: all 0.3s ease;
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
.input-custom:focus {
|
| 93 |
+
box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
/* Success animation */
|
| 97 |
+
@keyframes success {
|
| 98 |
+
0% {
|
| 99 |
+
transform: scale(1);
|
| 100 |
+
}
|
| 101 |
+
50% {
|
| 102 |
+
transform: scale(1.05);
|
| 103 |
+
}
|
| 104 |
+
100% {
|
| 105 |
+
transform: scale(1);
|
| 106 |
+
}
|
| 107 |
+
}
|
| 108 |
+
|
| 109 |
+
.success-animation {
|
| 110 |
+
animation: success 0.6s ease-in-out;
|
| 111 |
+
}
|