GooeyN / pumpfun 打开自动跳转到 dev 发币历史

// ==UserScript==
// @name         pumpfun 打开自动跳转到 dev 发币历史
// @namespace    http://tampermonkey.net/
// @version      2025-01-20
// @description  try to take over the world!
// @author       You
// @match        https://pump.fun/profile/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=pump.fun
// @grant        none
// @license      MIT
// ==/UserScript==

(function () {
  'use strict';
  const intervalId = setInterval(() => {
    const element = Array.from(document.querySelectorAll('.cursor-pointer.px-1.rounded.text-gray-500'))
      .find(el => el.innerText.trim() === 'coins created');

    if (element) {
      element.click(); // 点击目标元素
      clearInterval(intervalId); // 停止轮询
      console.log('Element clicked successfully');
    }
  }, 200); // 每隔 100 毫秒检查一次
})();