VDP Current Event Highlighter

Highlights VDP Current Event in blue

// ==UserScript==
// @name         VDP Current Event Highlighter
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Highlights VDP Current Event in blue
// @author       aakpooni
// @match        https://kdpow.amazon.com/work/vdp/baseline/*
// @match        https://crisp.amazon.com/details/*
// @match        https://kdpow.amazon.com/work/pv/baseline/*
// @grant        aakpooni
// ==/UserScript==

(function() {
    'use strict';

    // Function to highlight VDP Current Event
    function highlightVDPEvent() {
        // Find the th element containing "VDP Current Event"
        const vdpElements = document.querySelectorAll('th');
        vdpElements.forEach(element => {
            if (element.textContent.trim() === 'VDP Current Event') {
                // Add background color to the th element
                element.style.backgroundColor = '#0000FF';
                element.style.color = 'white';
            }
        });
    }

    // Run the function when the page loads
    window.addEventListener('load', highlightVDPEvent);

    // Also run the function periodically in case of dynamic content loading
    setInterval(highlightVDPEvent, 2000);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址