You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
935 B
31 lines
935 B
// ==UserScript==
|
|
// @name Hide Specific Buttons
|
|
// @namespace http://tampermonkey.net/
|
|
// @version 0.1
|
|
// @description Hide specific buttons on a webpage
|
|
// @author Jack
|
|
// @match http://home.erhe.link:18088/*
|
|
// @grant none
|
|
// ==/UserScript==
|
|
|
|
(function() {
|
|
'use strict';
|
|
|
|
// 等待页面加载完成
|
|
window.addEventListener('load', function() {
|
|
// 定义要隐藏的元素选择器
|
|
var selectors = [
|
|
'#root > div > div:nth-child(2)',
|
|
'#root > div > div:nth-child(3)',
|
|
'#root > div > div:nth-child(4)'
|
|
];
|
|
|
|
// 遍历选择器并隐藏对应的元素
|
|
selectors.forEach(function(selector) {
|
|
var element = document.querySelector(selector);
|
|
if (element) {
|
|
element.style.display = 'none'; // 隐藏元素
|
|
}
|
|
});
|
|
});
|
|
})(); |