您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Draws the Russian flag in the top corner of jadisco.pl
// ==UserScript== // @name Russian Flag on Jadisco // @namespace http://tampermonkey.net/ // @version 0.1 // @description Draws the Russian flag in the top corner of jadisco.pl // @author Your Name // @match https://jadisco.pl/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // Create a div to hold the flag var flagDiv = document.createElement('div'); flagDiv.style.position = 'fixed'; flagDiv.style.top = '10px'; flagDiv.style.left = '10px'; flagDiv.style.width = '60px'; flagDiv.style.height = '40px'; flagDiv.style.border = '1px solid black'; flagDiv.style.zIndex = '1000'; // Create the three stripes of the flag var colors = ['#ffffff', '#0000ff', '#ff0000']; for (var i = 0; i < 3; i++) { var stripe = document.createElement('div'); stripe.style.width = '100%'; stripe.style.height = '33.33%'; stripe.style.backgroundColor = colors[i]; flagDiv.appendChild(stripe); } // Add the flag to the body document.body.appendChild(flagDiv); })();