Greasy Fork is available in English.

My Script

Add a button to trigger an action

// ==UserScript==
// @name         My Script
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  Add a button to trigger an action
// @author       Your name
// @match        *://*.xiaoyinli.com/*
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';

    function addButton() {
        const button = document.createElement('button');
        button.textContent = 'My Button';
        button.addEventListener('click', () => {
            // Add your action here
        });
        document.body.appendChild(button);
    }

    addButton();
})();