|
@@ -0,0 +1,31 @@
|
|
|
|
|
+// ==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'; // 隐藏元素
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+})();
|