Created
January 30, 2026 01:33
-
-
Save ydm/b8f2ce636ac0f41e77c97c9ef984b093 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Кур за ОББ | |
| // @version 1 | |
| // @grant none | |
| // @include https://ebb.ubb.bg/* | |
| // ==/UserScript== | |
| function addBadge() { | |
| const badge = document.createElement("div"); | |
| badge.textContent = "КУР ЗА ОББ"; | |
| Object.assign(badge.style, { | |
| backgroundColor: "#e63946", | |
| color: "#ffffff", | |
| fontFamily: "Arial, sans-serif", | |
| fontSize: "14px", | |
| fontWeight: "bold", | |
| left: "0", | |
| padding: "10px 14px", | |
| pointerEvents: "none", | |
| position: "fixed", | |
| top: "0", | |
| zIndex: "2147483647" | |
| }); | |
| document.body.appendChild(badge); | |
| } | |
| function fixInputField(id) { | |
| const input = document.getElementById(id); | |
| if (!input) { | |
| return; | |
| } | |
| input.onpaste = null; | |
| input.removeAttribute("onpaste"); | |
| input.oncopy = null; | |
| input.removeAttribute("oncopy"); | |
| input.oncut = null; | |
| input.removeAttribute("oncut"); | |
| } | |
| window.addEventListener("load", function () { | |
| addBadge(); | |
| fixInputField("idLoginName"); | |
| fixInputField("idPass"); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment