Test Button

Test if script works

Verze ze dne 10. 05. 2026. Zobrazit nejnovější verzi.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Test Button
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Test if script works
// @author       You
// @match        *://*/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    
    alert('สคริปต์ทำงานแล้ว!');
    
    const button = document.createElement('button');
    button.textContent = 'ทดสอบปุ่ม';
    button.style.position = 'fixed';
    button.style.top = '20px';
    button.style.right = '20px';
    button.style.zIndex = '99999';
    button.style.padding = '10px 20px';
    button.style.backgroundColor = 'red';
    button.style.color = 'white';
    button.style.border = '3px solid black';
    button.style.fontSize = '20px';
    
    button.onclick = function() {
        alert('ปุ่มทำงาน!');
    };
    
    document.body.appendChild(button);
    console.log('ปุ่มถูกเพิ่มแล้ว');
})();