wckfxhs

用于测试

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

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 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         wckfxhs
// @namespace    http://tampermonkey.net/
// @version      0.1.2
// @description  用于测试
// @author       You
// @match        https://*/*
// @grant        unsafeWindow
// @require      https://cdn.staticfile.org/jquery/1.10.2/jquerdescirptiony.min.js
// @include      https://ark.xiaohongshu.com/app-order/dispatch/waybill/wait
// @license      MIT
// ==/UserScript==

// 等待网页完成加载
   (function () {
        'use strict';
        setTimeout(function () {
            var targetElement = document.querySelector('.table-op-row');
            console.log('targetElement', targetElement);
            if (targetElement) {
                var newButton = document.createElement('button');
                newButton.textContent = '打开小眼睛';
                newButton.style.marginLeft = '10px';
                newButton.classList.add('d-button');
                newButton.classList.add('d-button-default');
                newButton.classList.add('d-button-with-content');
                newButton.classList.add('--color-static');
                newButton.classList.add('bold');
                newButton.classList.add('--color-bg-primary');
                newButton.classList.add('--color-white');
                newButton.addEventListener('click', function () {
                    var elements = document.querySelectorAll('img[data-v-589d67da]');
                    for (var i = 0; i < elements.length; i++) {
                        var element = elements[i];
                        var clickEvent = new MouseEvent('click', {
                            bubbles: true,
                            cancelable: true,
                        });
                        element.dispatchEvent(clickEvent);
                    }
                });
                targetElement.appendChild(newButton);
            } else {
                console.error('Target element not found.');
            }
        }, 5000);
    })();