drmeth.com 클리커

우측 상단에 클릭 자동화 버튼을 추가합니다.

// ==UserScript==
// @name          drmeth.com 클리커
// @namespace     drmeth.com 클리커
// @match       *://drmeth.com/*
// @version       0.1
// @description  우측 상단에 클릭 자동화 버튼을 추가합니다.
// @icon          data:image/jpeg;base64,AAABAAEAICAAAAEACACoCAAAFgAAACgAAAAgAAAAQAAAAAEACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQEAAUFBQALCwsAGhoaAB0dHQAkJCQAJSUlACgoKAA6OjoAQEBAAERERABQUFAAU1NTAFlZWQBaWloAY2NjAGVlZQB7e3sAgICAAIKCggCGhoYAh4eHAIiIiACLi4sAjo6OAJWVlQCZmZkAnJycAJ6engCfn58AoKCgAKGhoQCioqIAqKioAKmpqQCsrKwAt7e3ALq6ugC9vb0Av7+/AMPDwwDGxsYAysrKAM3NzQDQ0NAA0dHRAN/f3wDp6ekA7e3tAPLy8gDz8/MA9/f3APn5+QD7+/sA/v7+AP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAA
// @author        mickey90427 <mickey90427@naver.com>
// ==/UserScript==

// 우측 상단 버튼 생성
var button = document.createElement("button");
button.innerHTML = "클릭 자동화 시작";
button.style.position = "fixed";
button.style.right = "20px";
button.style.top = "20px";
button.style.zIndex = "9999";
button.addEventListener("click", toggleClickAutomation);
document.body.appendChild(button);

// 클릭 자동화 토글 함수
var intervalId = null;
function toggleClickAutomation() {
  if (intervalId === null) { // 클릭 자동화 시작
    intervalId = setInterval(function() {
      document.getElementById('METH').click();
      document.getElementById('CASH').click();
    }, 100);
    button.innerHTML = "클릭 자동화 중지";
  } else { // 클릭 자동화 중지
    clearInterval(intervalId);
    intervalId = null;
    button.innerHTML = "클릭 자동화 시작";
  }
}