Deadshot.io Dot Crosshair

Adds a simple red dot crosshair at the center of the screen on deadshot.io.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Deadshot.io Dot Crosshair
// @namespace    https://greasyfork.org/users/yourname
// @version      1.0
// @description  Adds a simple red dot crosshair at the center of the screen on deadshot.io.
// @match        *://deadshot.io/*
// @match        *://*.deadshot.io/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Prevent multiple injections
    if (window.__deadshot_dot_crosshair_injected) return;
    window.__deadshot_dot_crosshair_injected = true;

    // Create the dot element
    const dot = document.createElement('div');
    dot.id = 'deadshot-dot-crosshair';

    // Style it as a small red circle in the exact center
    Object.assign(dot.style, {
        position: 'fixed',
        left: '50%',
        top: '50%',
        width: '8px',
        height: '8px',
        background: '#ff0000',
        borderRadius: '50%',
        transform: 'translate(-50%, -50%)',
        pointerEvents: 'none',  // don't block game input
        zIndex: '2147483647',   // top of everything
    });

    // Add it to the page
    document.body.appendChild(dot);
})();