显示阿里万象召唤人工客服按钮

显示隐藏的列表项:召唤人工客服按钮

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         显示阿里万象召唤人工客服按钮
// @namespace    http://tampermonkey.net/
// @version      2024-06-18
// @description  显示隐藏的列表项:召唤人工客服按钮
// @author       You
// @match        https://everyhelp.taobao.com/screen/home.htm*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=taobao.com
// @grant        none
// @license MIT 
// ==/UserScript==

(function() {
    'use strict';

    // Function to search for the <li> tag and modify its display property
    function showHiddenListItem() {
        // Get all <li> tags on the page
        const listItems = document.querySelectorAll('li');

        // Iterate through each <li> tag
        listItems.forEach(li => {
            // Check if the <li> tag contains the specific substring
            if (li.innerHTML.includes('召唤人工客服')) {
                // Modify the CSS to display the <li> tag
                li.style.setProperty('display','inline-flex','important');
            }
        });
    }

    // Run the function after the page has loaded
    window.addEventListener('load', showHiddenListItem);

})();