Özel Crosshair: Fare imleciniz şık bir "+" (Artı) işaretine dönüşür.
Sürüklenebilir Menü: Paneli başlığından tutarak ekranın istediğiniz yerine taşıyabilirsiniz.
Minimize Özelliği: Menüyü tek tıkla küçülterek yer kaplamasını önleyebilirsiniz.
Hava Durumu Efektleri: Göz yormayan, optimize edilmiş Kar ve Yağmur yağışı.
Modern Arayüz: Neon yeşil detaylarla süslenmiş karanlık tema.
// ==UserScript==
//
@name CG Movable & Minimizable Menu - arwez ae
//
@Namespace
Linkleri görebilmek için kayıt olmanız gerekmektedir
//
@version 10.0
// @description + İmleç, Sürüklenebilir ve Küçültülebilir Modern Menü.
//
@Author arwez arwez
// @match
https://cheatglobal.com/*
// @grant GM_addStyle
// ==/UserScript==
(function() {
'use strict';
// 1. TASARIM: + İMLEÇ VE MODERN PANEL
GM_addStyle(`
body, a, button, .p-pageWrapper {
cursor: crosshair !important;
}
#lua-pro-panel {
position: fixed; top: 120px; right: 50px; z-index: 100001;
width: 220px; background: #111; border: 2px solid #00ffea;
border-radius: 10px; padding: 0; color: #fff;
box-shadow: 0 10px 30px rgba(0,0,0,0.7);
font-family: 'Segoe UI', sans-serif;
overflow: hidden; transition: height 0.3s ease;
}
#lua-header-drag {
padding: 12px; cursor: move; background: #00ffea;
color: #000; font-weight: 900; text-align: center;
display: flex; justify-content: space-between; align-items: center;
font-size: 11px; letter-spacing: 1px;
}
#lua-min-btn {
cursor: pointer; font-size: 16px; font-weight: bold;
padding: 0 5px; line-height: 1;
}
.lua-content { padding: 15px; transition: opacity 0.3s; }
.lua-btn-action {
background: #1a1a1a; border: 1px solid #333; color: #fff;
width: 100%; padding: 10px; margin-bottom: 10px; cursor: pointer;
border-radius: 6px; font-size: 11px; font-weight: 600;
transition: 0.2s;
}
.lua-btn-action:hover { background: #00ffea; color: #000; box-shadow: 0 0 10px #00ffea; }
canvas#lua-fx-canvas {
position: fixed; top: 0; left: 0; pointer-events: none; z-index: 100000;
}
`);
// 2. PANEL HTML YAPISI
const panel = document.createElement('div');
panel.id = 'lua-pro-panel';
panel.innerHTML = `
<div id="lua-header-drag">
<span>cheatglobal.com</span>
<span id="lua-min-btn">−</span>
</div>
<div class="lua-content" id="lua-body">
<button class="lua-btn-action" id="fx-snow">KAR MODU</button>
<button class="lua-btn-action" id="fx-rain">YAĞMUR MODU</button>
<button class="lua-btn-action" id="fx-stop" style="color:#ff4b2b; border-color:#ff4b2b;">DURDUR</button>
<div style="font-size:9px; color:#555; text-align:center;">Sürüklemek için başlığı tut.</div>
</div>
`;
document.body.appendChild(panel);
// 3. KÜÇÜLTME/BÜYÜTME MANTIĞI
let isMinimized = false;
const minBtn = document.getElementById("lua-min-btn");
const body = document.getElementById("lua-body");
minBtn.onclick = (e) => {
e.stopPropagation();
isMinimized = !isMinimized;
if (isMinimized) {
panel.style.height = "41px"; // Sadece başlık görünür
body.style.opacity = "0";
setTimeout(() => { if(isMinimized) body.style.display = "none"; }, 300);
minBtn.innerText = "+";
} else {
body.style.display = "block";
panel.style.height = "auto";
setTimeout(() => { body.style.opacity = "1"; }, 10);
minBtn.innerText = "−";
}
};
// 4. SÜRÜKLENEBİLİR YAPALIM
dragElement(panel);
function dragElement(elmnt) {
var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
const header = document.getElementById("lua-header-drag");
header.onmousedown = dragMouseDown;
function dragMouseDown(e) {
e = e || window.event;
if (e.target.id === "lua-min-btn") return; // Butona basınca sürükleme
pos3 = e.clientX; pos4 = e.clientY;
document.onmouseup = closeDragElement;
document.onmousemove = elementDrag;
}
function elementDrag(e) {
e = e || window.event;
pos1 = pos3 - e.clientX; pos2 = pos4 - e.clientY;
pos3 = e.clientX; pos4 = e.clientY;
elmnt.style.top = (elmnt.offsetTop - pos2) + "px";
elmnt.style.left = (elmnt.offsetLeft - pos1) + "px";
}
function closeDragElement() {
document.onmouseup = null;
document.onmousemove = null;
}
}
// 5. HAVA DURUMU SİSTEMİ (STABİL)
let canvas, ctx, particles = [], animationId, mode = 'none';
function initCanvas() {
if(canvas) canvas.remove();
canvas = document.createElement('canvas');
canvas.id = 'lua-fx-canvas';
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
document.body.appendChild(canvas);
ctx = canvas.getContext('2d');
}
function createParticles(type) {
particles = [];
const count = type === 'snow' ? 100 : 70;
for(let i = 0; i < count; i++) {
particles.push({
x: Math.random() * canvas.width,
y: Math.random() * canvas.height,
v: type === 'snow' ? (Math.random() * 1.2 + 0.5) : (Math.random() * 10 + 10),
r: type === 'snow' ? (Math.random() * 2.5 + 1) : 1
});
}
}
function draw() {
ctx.clearRect(0, 0, canvas.width, canvas.height);
ctx.fillStyle = mode === 'snow' ? "white" : "#00ffea";
particles.forEach(p => {
ctx.beginPath();
if(mode === 'snow') ctx.arc(p.x, p.y, p.r, 0, Math.PI * 2);
else ctx.fillRect(p.x, p.y, 1, 15);
ctx.fill();
p.y += p.v; if(p.y > canvas.height) p.y = -20;
});
animationId = requestAnimationFrame(draw);
}
document.getElementById('fx-snow').onclick = () => { mode='snow'; initCanvas(); createParticles('snow'); cancelAnimationFrame(animationId); draw(); };
document.getElementById('fx-rain').onclick = () => { mode='rain'; initCanvas(); createParticles('rain'); cancelAnimationFrame(animationId); draw(); };
document.getElementById('fx-stop').onclick = () => { mode='none'; cancelAnimationFrame(animationId); if(canvas) canvas.remove(); };
})();