Sample Userscript Greasy Fork Full

Userscript mẫu đầy đủ metadata, hợp lệ tuyệt đối khi đăng Greasy Fork

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         Sample Userscript Greasy Fork Full
// @namespace    https://greasyfork.org/users/ahi/sample-userscript-full
// @version      1.0.0
// @description  Userscript mẫu đầy đủ metadata, hợp lệ tuyệt đối khi đăng Greasy Fork
// @author       Ahi
// @match        *://*/*
// @license      MIT
// @grant        none
// @run-at       document-end
// ==/UserScript==

(function () {
    'use strict';

    // Code JavaScript thực thi hợp lệ
    console.log('✅ Userscript Greasy Fork đang chạy');

    // Ví dụ thao tác DOM
    const banner = document.createElement('div');
    banner.textContent = 'Userscript hoạt động';
    banner.style.position = 'fixed';
    banner.style.top = '10px';
    banner.style.right = '10px';
    banner.style.background = '#222';
    banner.style.color = '#fff';
    banner.style.padding = '8px 12px';
    banner.style.borderRadius = '6px';
    banner.style.fontSize = '12px';
    banner.style.zIndex = '99999';

    document.body.appendChild(banner);
})();