您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Кнопка для просмотра видео с чертями под "Хорошо у нас в аду!"
// ==UserScript== // @name Место хакеров дравы // @namespace http://tampermonkey.net/ // @version 1.0 // @description Кнопка для просмотра видео с чертями под "Хорошо у нас в аду!" // @author minish // @match drawaria.online // @grant none // ==/UserScript== (function() { 'use strict'; // Создаем кнопку const button = document.createElement('button'); button.innerText = "Место хакеров дравы"; button.style.position = 'fixed'; button.style.bottom = '20px'; button.style.right = '20px'; button.style.padding = '10px 20px'; button.style.backgroundColor = '#ff0000'; button.style.color = '#fff'; button.style.border = 'none'; button.style.borderRadius = '5px'; button.style.zIndex = '1000'; button.style.cursor = 'pointer'; // Добавляем обработчик события нажатия на кнопку button.onclick = () => { const videoUrl = "https://www.youtube.com/embed/G_79EFFB9qs?autoplay=1&mute=0"; // Создаем модальное окно const modal = document.createElement('div'); modal.style.position = 'fixed'; modal.style.top = '0'; modal.style.left = '0'; modal.style.width = '100%'; modal.style.height = '100%'; modal.style.backgroundColor = 'rgba(0, 0, 0, 0.8)'; modal.style.zIndex = '1001'; modal.style.display = 'flex'; modal.style.alignItems = 'center'; modal.style.justifyContent = 'center'; // Добавляем iframe с видео const iframe = document.createElement('iframe'); iframe.width = '80%'; iframe.height = '80%'; iframe.src = videoUrl; iframe.frameBorder = '0'; iframe.allowFullscreen = true; modal.appendChild(iframe); document.body.appendChild(modal); // Закрытие модального окна при клике modal.onclick = () => { document.body.removeChild(modal); }; }; // Добавляем кнопку на страницу document.body.appendChild(button); })();