NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name bullx 隐藏 刚发币 // @namespace http://tampermonkey.net/ // @version 2025-01-20 // @description try to take over the world! // @author You // @match https://neo.bullx.io/ // @icon https://www.google.com/s2/favicons?sz=64&domain=pump.fun // @grant none // @license MIT // ==/UserScript== (function () { 'use strict'; setTimeout(function () { // 创建一个新的按钮元素 const button = document.createElement('button'); button.textContent = '隐藏刚发币'; button.style.cssText = 'background-color: #4CAF50; color: white; padding: 10px 15px; border: none; border-radius: 5px; cursor: pointer; font-size: 14px; margin: 10px 0;'; // 添加点击事件监听器 button.addEventListener('click', function () { const sideRight = document.querySelector('.flex.flex-col.gap-y-1.h-full.border.border-grey-500.rounded.bg-grey-900'); // 刚发币一栏 // 选中第一个匹配的元素 const element = document.querySelector('.grid.grid-cols-1.lg\\:grid-cols-3.gap-2.h-full.p-2.min-h-0'); if (element) { // 添加新的 class element.classList.remove('grid-cols-1', 'lg:grid-cols-3'); element.classList.add('grid-cols-2', 'lg:grid-cols-2'); } if (sideRight && sideRight.style.display !== 'none') { sideRight.style.display = 'none'; } else { sideRight.style.display = 'block'; } }); // 获取顶栏右上角元素 const sideRight = document.querySelector('.flex.items-center.gap-2.justify-end'); // 顶栏右上角 // 检查顶栏右上角元素是否存在 if (sideRight) { // 将按钮插入到顶栏右上角元素素的最前面 sideRight.insertBefore(button, sideRight.firstChild); } else { console.error('未找到顶栏右上角元素'); } }, 1500); // 1500 毫秒后执行 })();