显示隐藏的列表项:召唤人工客服按钮
// ==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);
})();