Test Button

Test if script works

Från och med 2026-05-10. Se den senaste versionen.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

// ==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('ปุ่มถูกเพิ่มแล้ว');
})();