Spaces:
Running
Running
Update index.html
Browse files- index.html +142 -19
index.html
CHANGED
@@ -1,19 +1,142 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="ru">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<title>Поиск в Google</title>
|
6 |
+
<style>
|
7 |
+
body {
|
8 |
+
background-color: #1a1a1a;
|
9 |
+
color: #ffffff;
|
10 |
+
font-family: Arial, sans-serif;
|
11 |
+
}
|
12 |
+
|
13 |
+
.container {
|
14 |
+
margin: 20px;
|
15 |
+
text-align: center;
|
16 |
+
padding: 20px;
|
17 |
+
border-radius: 10px;
|
18 |
+
background-color: #2d2d2d;
|
19 |
+
box-shadow: 0 0 15px rgba(0,0,0,0.3);
|
20 |
+
}
|
21 |
+
|
22 |
+
input[type="text"], select {
|
23 |
+
width: 30%;
|
24 |
+
padding: 12px 20px;
|
25 |
+
margin: 8px 0;
|
26 |
+
display: inline-block;
|
27 |
+
border: 1px solid rgba(255,255,255,0.1);
|
28 |
+
border-radius: 4px;
|
29 |
+
box-sizing: border-box;
|
30 |
+
background-color: #333333;
|
31 |
+
color: #ffffff;
|
32 |
+
}
|
33 |
+
|
34 |
+
input[type="text"]:focus, select:focus {
|
35 |
+
outline: none;
|
36 |
+
border-color: #4CAF50;
|
37 |
+
}
|
38 |
+
|
39 |
+
button[type="submit"] {
|
40 |
+
width: 10%;
|
41 |
+
background-color: #4CAF50;
|
42 |
+
color: white;
|
43 |
+
padding: 14px 20px;
|
44 |
+
margin: 8px 0;
|
45 |
+
border: none;
|
46 |
+
border-radius: 4px;
|
47 |
+
cursor: pointer;
|
48 |
+
transition: background-image 0.3s;
|
49 |
+
background-image: linear-gradient(to bottom, #4CAF50, #45a049);
|
50 |
+
}
|
51 |
+
|
52 |
+
button[type="submit"]:hover {
|
53 |
+
background-image: linear-gradient(to bottom, #45a049, #4CAF50);
|
54 |
+
}
|
55 |
+
|
56 |
+
.success {
|
57 |
+
color: #4CAF50;
|
58 |
+
margin-top: 10px;
|
59 |
+
font-weight: bold;
|
60 |
+
}
|
61 |
+
|
62 |
+
.error {
|
63 |
+
color: #f44336;
|
64 |
+
margin-top: 10px;
|
65 |
+
font-weight: bold;
|
66 |
+
}
|
67 |
+
|
68 |
+
.container img {
|
69 |
+
width: 100px;
|
70 |
+
margin: 10px;
|
71 |
+
border-radius: 5px;
|
72 |
+
box-shadow: 0 0 10px rgba(0,0,0,0.3);
|
73 |
+
}
|
74 |
+
</style>
|
75 |
+
</head>
|
76 |
+
<body>
|
77 |
+
<div class="container">
|
78 |
+
<img src="https://i.pinimg.com/originals/bc/e4/c0/bce4c082e2a1c2ec016351228f782a4a.gif" alt="Logo"/>
|
79 |
+
<form id="searchForm">
|
80 |
+
<input id="searchInput" type="text" placeholder="Введите ваш запрос для поиска"/>
|
81 |
+
<button type="submit">Поиск</button>
|
82 |
+
</form>
|
83 |
+
<div id="message"></div>
|
84 |
+
</div>
|
85 |
+
|
86 |
+
<script>
|
87 |
+
document.getElementById('searchForm').addEventListener('submit', function(e) {
|
88 |
+
e.preventDefault();
|
89 |
+
const searchQuery = document.getElementById('searchInput').value;
|
90 |
+
searchGoogle(searchQuery);
|
91 |
+
});
|
92 |
+
|
93 |
+
function searchGoogle(search) {
|
94 |
+
if (typeof search !== 'string' || search.trim() === '') {
|
95 |
+
console.error('Поисковый запрос должен быть строкой и не должен быть пустым.');
|
96 |
+
return;
|
97 |
+
}
|
98 |
+
|
99 |
+
const words = search.split(" ").filter(Boolean);
|
100 |
+
const wordsCount = words.length;
|
101 |
+
if (wordsCount >= 32) {
|
102 |
+
console.error('Количество слов в поисковом запросе должно быть меньше 32.');
|
103 |
+
return;
|
104 |
+
}
|
105 |
+
|
106 |
+
const o = 32 - wordsCount;
|
107 |
+
if (o <= 0) {
|
108 |
+
console.error('Ошибка в расчете o.');
|
109 |
+
return;
|
110 |
+
}
|
111 |
+
|
112 |
+
const template = "site:*.*.%NUM%.* |";
|
113 |
+
let query = "";
|
114 |
+
const urls = [];
|
115 |
+
const maxUrls = 10; // Ограничение количества URL для предотвращения блокировки
|
116 |
+
|
117 |
+
try {
|
118 |
+
for (let i = 0; i < Math.floor(256 / o) && i < maxUrls; i++) {
|
119 |
+
query = "";
|
120 |
+
for (let ii = 0; ii < (257 - (i * o)); ii++) {
|
121 |
+
query += template.replace("%NUM%", ii);
|
122 |
+
}
|
123 |
+
query = query.slice(0, -1);
|
124 |
+
query = `(${search}) (${query})`;
|
125 |
+
const url = `https://www.google.com/search?q=${encodeURIComponent(query)}`;
|
126 |
+
urls.push(url);
|
127 |
+
}
|
128 |
+
|
129 |
+
// Открываем URL с задержкой для предотвращения блокировки
|
130 |
+
urls.forEach((url, index) => {
|
131 |
+
setTimeout(() => {
|
132 |
+
window.open(url, '_blank', 'noreferrer');
|
133 |
+
}, index * 1000); // Задержка 1 секунда между открытием вкладок
|
134 |
+
});
|
135 |
+
|
136 |
+
} catch (error) {
|
137 |
+
console.error('Произошла ошибка:', error);
|
138 |
+
}
|
139 |
+
}
|
140 |
+
</script>
|
141 |
+
</body>
|
142 |
+
</html>
|