Skip to content

Instantly share code, notes, and snippets.

@ydm
Created January 30, 2026 01:33
Show Gist options
  • Select an option

  • Save ydm/b8f2ce636ac0f41e77c97c9ef984b093 to your computer and use it in GitHub Desktop.

Select an option

Save ydm/b8f2ce636ac0f41e77c97c9ef984b093 to your computer and use it in GitHub Desktop.
// ==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