


오상구
•2026.01.12 15:41:41
오픈코드니까 불안하면 AI한테 물어보셈)
먼저 스크립트를 실행해 줄 **'Tampermonkey(탬퍼몽키)'**라는 확장 프로그램을 깔아야 합니다. (유명하고 안전한 프로그램입니다.)
https://chromewebstore.google.com/?utm_source=ext_app_menu
이 주소로 들어가면 크롬 웹스토어가 나오는데 검색창에 Tampermonkey 를 검색해서 설치해줍니다
브라우저 우측 상단에 생긴 **검은색 네모 아이콘(Tampermonkey)**을 클릭하세요. (안 보이면 퍼즐 조각🧩 아이콘을 눌러보세요.)
메뉴에서 **[ + 새 스크립트 만들기 ]**를 클릭합니다.
화면에 뭔가 코드가 적혀있을 텐데, 싹 다 지워서 빈칸으로 만드세요.
아래 코드를 복사해서 그 자리에 그대로 붙여넣기(Ctrl+V) 하세요.
// ==UserScript==
// @name 거타 채팅 도배 차단기 V29.1 (스크롤 수정본)
// @namespace http://tampermonkey.net/
// @version 29.1
// @description 도배 차단 시 스크롤이 멈추거나 튕기는 현상을 해결했습니다.
// @author User
// @match https://geota.co.kr/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
const blockList = ["즐라탄"];
const historyCounts = {};
function superClean(text) {
return text.replace(/[^가-힣ㄱ-ㅎㅏ-ㅣa-zA-Z0-9]/g, '');
}
function isSpam(el) {
try {
const rawText = el.innerText;
const cleanText = superClean(rawText);
if (cleanText.length === 0) {
if (el.querySelector('img')) return false;
return true;
}
if (blockList.some(keyword => cleanText.includes(keyword))) {
return true;
}
const count = (historyCounts[cleanText] || 0) + 1;
if (cleanText.length > 10) {
return count > 1;
} else {
return count > 4;
}
} catch (e) {
return false;
}
}
function checkAndAct(el) {
const row = el.closest('.self-stretch');
if (!row || row.id === 'geota-chatting-window' || row.classList.contains('custom-scrollbar-y')) return;
const cleanText = superClean(el.innerText);
if (isSpam(el)) {
if (row.style.display !== 'none') {
row.style.display = 'none'; // 차단
if (cleanText) historyCounts[cleanText] = (historyCounts[cleanText] || 0) + 1;
}
} else {
if (row.style.display === 'none') {
row.style.display = '';
}
if (cleanText) historyCounts[cleanText] = (historyCounts[cleanText] || 0) + 1;
}
}
// --- 스크롤 보정 핵심 로직 ---
function anchorScroll(chatWindow) {
// 거타 사이트 특성에 맞게 스크롤 컨테이너를 찾습니다.
const scrollContainer = chatWindow.querySelector('.custom-scrollbar-y') || chatWindow;
// 사용자가 바닥에서 200px 이내에 있다면 (바닥에 붙어있다고 간주)
const threshold = 200;
const isAtBottom = scrollContainer.scrollHeight - scrollContainer.scrollTop - scrollContainer.clientHeight <= threshold;
if (isAtBottom) {
// 차단으로 인해 높이가 변한 직후에 실행되도록 2단계 프레임 예약
requestAnimationFrame(() => {
scrollContainer.scrollTop = scrollContainer.scrollHeight;
// 일부 브라우저 대응을 위해 한번 더 실행
setTimeout(() => {
scrollContainer.scrollTop = scrollContainer.scrollHeight;
}, 10);
});
}
}
function startEngine() {
const chatWindow = document.getElementById('geota-chatting-window');
if (!chatWindow) {
setTimeout(startEngine, 500);
return;
}
const observer = new MutationObserver((mutations) => {
let shouldFixScroll = false;
mutations.forEach((mutation) => {
if (mutation.type === 'childList' && mutation.addedNodes.length > 0) {
mutation.addedNodes.forEach((node) => {
if (node.nodeType !== 1) return;
const textEl = node.querySelector('.text-sm.font-medium.leading-normal');
if (textEl) {
checkAndAct(textEl);
shouldFixScroll = true;
}
});
}
});
if (shouldFixScroll) {
anchorScroll(chatWindow);
}
});
observer.observe(chatWindow, {
childList: true,
subtree: true
});
// 보조 순찰 및 카운트 초기화
setInterval(() => {
// 카운트를 초기화하면 다시 1부터 쌓이므로 무분별한 차단을 방지합니다.
for (let key in historyCounts) delete historyCounts[key];
const targets = chatWindow.querySelectorAll('.text-sm.font-medium.leading-normal');
let changed = false;
targets.forEach(el => {
checkAndAct(el);
changed = true;
});
if (changed) anchorScroll(chatWindow);
}, 500);
}
startEngine();
})();
코드를 다 넣으셨으면 키보드 Ctrl + S를 누르세요.
거타 사이트에 가서 새로고침(F5) 한 번 해주면 끝입니다!
새로 생긴 확장프로그램에 숫자1이 보인다면 잘 작동하고있다는뜻입니다.
전체 댓글 12개









| 번호 | 분류 | 제목 | 글쓴이 | 작성일 | 조회 | 추천 |
|---|---|---|---|---|---|---|
| 131 | 공지 | 거상을 더 즐겁게! 유저 중심 커뮤니티, 거타를 소개합니다. [23] | 관리자 | 02.28 | 50,201 | 76 |
| 115 | 공지 | 자유 게시판 이용안내 [12] | 관리자 | 02.28 | 38,938 | 5 |
| 488 | 자유 | ![]() 21 dbswnstn | 03.19 | 5572 | 0 | |
| 479 | 자유 | 안녕하세요[1] | ASD(211.40) | 03.19 | 5087 | 1 |
| 478 | 자유 | 반가부리(121.140) | 03.19 | 5253 | 0 | |
| 470 | 자유 | 오라시온(118.235) | 03.19 | 7399 | 2 | |
| 469 | 자유 | ㅇㅇ(211.234) | 03.19 | 5222 | 0 | |
| 468 | 자유 | 비스서민(49.171) | 03.19 | 5870 | 1 | |
| 467 | 자유 | 비스서민(49.171) | 03.19 | 6168 | 3 | |
| 466 | 자유 | ㅇㅇ(121.140) | 03.19 | 6013 | 2 | |
| 465 | 자유 | 거짱맨(122.35) | 03.19 | 7766 | 0 | |
| 463 | 자유 | ㅇㅇ(121.140) | 03.19 | 5797 | 1 | |
| 462 | 자유 | 거리니(223.38) | 03.19 | 4990 | 2 | |
| 461 | 자유 | ㅇㅇ(59.15) | 03.18 | 7613 | 1 | |
| 460 | 자유 | 김춘례범인(211.228) | 03.18 | 5843 | 8 | |
| 449 | 자유 | ㅇㅇ(211.234) | 03.18 | 6245 | 0 | |
| 448 | 자유 | ㅇㅇ(59.15) | 03.18 | 6064 | 0 | |
| 447 | 자유 | 명왕궁삽니다(61.43) | 03.17 | 4986 | 1 | |
| 446 | 자유 | ㅇㅇ(121.140) | 03.17 | 8762 | 0 | |
| 440 | 자유 | 명왕검(211.235) | 03.17 | 4872 | 0 | |
| 419 | 자유 | ㅇㅇ(220.84) | 03.16 | 6117 | 1 | |
| 418 | 자유 | ㅇㅇ(59.15) | 03.16 | 5159 | 0 | |
| 417 | 자유 | 장비요(211.248) | 03.15 | 5167 | 0 | |
| 416 | 자유 | ㅇㅇ(59.15) | 03.15 | 7387 | 0 | |
| 415 | 자유 | ㅎㅎㅎ(219.254) | 03.14 | 5460 | 2 | |
| 414 | 자유 | 2차하자(49.163) | 03.14 | 7498 | 1 | |
| 413 | 자유 | ㅇㅇ(121.140) | 03.14 | 5671 | 0 | |
| 411 | 자유 | 비스서민(49.171) | 03.14 | 5586 | 1 | |
| 400 | 자유 | 비스서민(49.171) | 03.14 | 8007 | 1 | |
| 399 | 자유 | heej123(106.255) | 03.14 | 4772 | 0 | |
| 398 | 자유 | 비스서민(49.171) | 03.14 | 5192 | 2 | |
| 397 | 자유 | 아이디단군(223.38) | 03.14 | 5389 | 0 | |
| 386 | 자유 | ㅇㅇ(121.140) | 03.14 | 5228 | 0 | |
| 385 | 자유 | 비스서민(124.28) | 03.14 | 5855 | 1 | |
| 383 | 자유 | 비스서민(124.28) | 03.14 | 5334 | 1 | |
| 382 | 자유 | 비스서민(124.28) | 03.14 | 6373 | 2 | |
| 381 | 자유 | 비스서민(49.171) | 03.13 | 6511 | 2 | |
| 380 | 자유 | 비스서민(49.171) | 03.13 | 6577 | 2 | |
| 379 | 자유 | 비스서민(49.171) | 03.13 | 6079 | 2 | |
| 378 | 자유 | ㅇㅇ(59.15) | 03.13 | 10309 | 0 | |
| 377 | 자유 | 거상초보(116.39) | 03.13 | 11797 | 5 | |
| 376 | 자유 | 거상초보(116.39) | 03.13 | 10272 | 3 | |
| 375 | 자유 | ㅇㅇ(121.140) | 03.13 | 6036 | 0 | |
| 374 | 자유 | 거상초보(116.39) | 03.13 | 16949 | 2 | |
| 373 | 자유 | 거상초보(116.39) | 03.13 | 8621 | 2 | |
| 372 | 자유 | 거상초보(116.39) | 03.13 | 25165 | 2 | |
| 369 | 자유 | 오호섭물러가라(106.101) | 03.13 | 4988 | 0 | |
| 368 | 자유 | ㅇㅇ(121.140) | 03.13 | 5683 | 0 | |
| 355 | 자유 | ㅇㅇ(121.140) | 03.13 | 6723 | 1 | |
| 344 | 자유 | 도전모드(118.38) | 03.13 | 5435 | 1 | |
| 343 | 자유 | ㅇㅇ(223.42) | 03.12 | 4693 | 1 | |
| 341 | 자유 | ㅇㅇ(210.86) | 03.12 | 5020 | 2 |