kone
소미소프트
소미소프트

본인 보유 게임리스트 코네에서 하이라이트로 뜨게하기 (보유게임 중복확인,복구가능 게임 보기) v1.2

08/05/2026, 20:19:14
유틸
28216 views · 10 likes

코네에 올라오는 게임중, 자신이 이미 가지고 있는 게임인지 아닌지 매번 하나하나씩 Everything이나 파일트리에 비교하시나요?

설마 방주털이 게시글 올라올 때도 하는 건 아니죠? ㄷㄷ 너무 번거롭네.

복구하시는 분들도 하이라이트 되는 식별번호 보면서 복구가능한지 쉽게 알 수 있습니다.

이제 이 스크립트 써서 수고 덜으세요.

AI 살살 달래가며 만들어 왔습니다.

현제 스크립트는 본문 맨 아래 써 있는 데로, 기능 수정과 추가 계획이 있으니 확인 바랍니다.


준비물

  1. 브라우저 확장 프로그램 탬퍼몽키 (사용법 모르시면 알아서 찾아보시고)

  2. 본인이 보유한 게임 식별들이 적힌 텍스트 (파일트리여도 됩니다. ‘사용법_4_파싱 예’ 참고)


사용법

(브라우저 ‘새로고침’을 잘 사용해주시기 바랍니다. 템퍼몽키 스크립트들은 적용이 되려면 해야하는 경우가 많습니다.)

  1. 스크립트를 템퍼모키로 실행시킵니다.

  2. 우측-중단에 돋보기 버블 아이콘을 클릭합니다.

1
  1. 텍스트 박스에 본인이 보유한 게임 식별번호들이 적힌 텍스트 뭉치를 넣습니다.

  2. 'Update Database' 버튼을 누르면 스크립트는 텍스트를 파싱합니다.

코네 웹페이지에 매칭되는 식별번호를 확인해 하이라이트 하며, Database 와 Matches 값을 업데이트해 표시합니다.

파싱 예 (레직스 표현식 경계 \b 사용):

레직스의 \b 는 글자/알파벳/언더바가 아닌 것들을 단어 경계로 인정합니다.

단어 경계가 시작이나 끝에 있다면 식별번호를 골라내도록 파싱이 됩니다.

이 스크립트 경우, 아래 경우 식별번호 파싱이 안됩니다:

  • 숫자로 시작

  • 지원하지 않는 판매처 식별 글자로 시작

  • 판매처 식별 글자 후 숫자가 아닌 글자로 이어지면

  • 지원하지 않는 판매처 식별에 추가적인 언더바

파싱되는 예 시:

  • RJ12345

  • (RJ12345)

  • [rj12345]

  • {Rj12345}

  • rj12345,

  • RJ12345.

  • RJ12345:

  • RJ12345;

  • RJ12345!

  • RJ12345?

  • "RJ12345"

  • 'RJ12345'

1

Database : 데이터베이스에 등록한 식별번호 수 (중복 제외)

Matches : 데이터베이스의 식별번호들과 매칭된 웹페이지에 적힌 식별번호들 수

위 스샷은 예로 들어 식별번호만 텍스트 박스에 보이는데, 파싱된 후의 결과입니다.

브라우저 새로고침을 누르면 식별번호만이 남게 됩니다.

(지원되는 판매처 번호는 아래 ‘식별번호 양식’ 요약 참조)

식별번호 양식

(팬제작이나 등등 식별불가는 텍스트 파싱부터가 다른 식으로 접근해야 하며 복잡해져서 포함치 않습니다)

(여기 테이블에 더 추가할 것이 보이면 말씀해주시기 바랍니다)

판매/배포처

웹사이트

식별번호 패턴

Booth

https://booth.pm

BT...

FanzaGames

https://www.dmm.co.jp

Fanza… | d_... | FZ_... | FZ

Getchu

https://www.getchu.com

GC...

Jast

https://jaststore.com

jast...

072Project

https://072project.com

RA...

DLsite

https://www.dlsite.com

RJ... | VJ...

Steam

https://store.steampowered.com

Steam... | ST...

VNDB

https://vndb.org

VN...

(비쥬얼 노벨 위주인 사이트.

별도 판매식별이 불가하며 이곳에 등록되어 있을 경우)

  1. 발견된 식별들을 게임 데이터베이스로 만들어서 탬퍼몽키 브라우저 확장 프로그램 내부 저장소에 보관.

(브라우저 끄거나 캐시 지워도 데이터 유지 됨)

  1. 'Highlight On' 버튼으로 해두면, 코네 게시글 목록 제목과 게시글 본문에서 발견되는 게임 데이터베이스를 하이라이트 시킴.

'Highlight Off' 버튼으로 해두면, 하이라이트 끔.

1


추가 편리성 기능:

  1. 대체로 GUI 스크립트는 우측-하단에 위치하게 만드는걸 필자는 알기에,

이 스크립트 GUI는 우측-중단에서 시작되게 만듬

  1. 돋보기 아이콘 버블 UI로 GUI 확대/축소 가능

1
  1. 웹페이지에 뭐 가리지 않도록 GUI 드래그해서 이동시키는 것도 가능

  2. 브라우저 화면 밖으로 나가지 않게 만듬

  3. GUI 확장/축소 누를 시, 이 두 GUI 모드 버튼이 마우스 아래로 집중되도록 GUI 확장/축소 방식 변경


스크립트

  1. 아래 요약에 적은 스크립트를 템퍼몽키에 넣어서 실행해주세요.

  2. 게임 식별들이 적힌 텍스트를 템퍼몽키 실행해서 열린 GUI의 텍스트 박스에 넣어주세요.

제가 스크립트 여기에 붙여넣기 하려니까 코네 녀석이 스크립트와 충돌을 하군요.

하이라이트 된 부분의 전체 줄이 문제가 있으니, 아래대로 바꿔주세요.

(이거 충돌 계속 되서 여기에 적는 것도 힘드네요. 한번 충돌하니 미친듯이 막 충돌함)

첫 줄: // ==UserScript

위에 거 후에 바로 적을 거: ==


마지막 @grant 의 다음 줄: // ==/UserScript

위에 거 바로 후에 적을 거: ==

(이 외에 발견되는 부분 보이면 말씀주세요)

스크립트 v1.2

// UserScript

// @name 보유중 게임식별번호 매칭

// @namespace http://tampermonkey.net/

// @version 1.2

// @description 보유 게임 식벽들을 포함한 텍스트 넣고, 코네 사이트에서 발견되면 하이라이트 시킴

// @author 공승아

// @match https://kone.gg/*

// @grant GM_getValue

// @grant GM_setValue

// /UserScript

(function () {

"use strict";

const CONTENT_SELECTORS = [

"div.relative.min-h-60",

'#post-list a[class*="group/article"] div.grid-cols-22 div.col-span-12 div.flex.items-center.gap-1 span'

];

const DB_KEY = "code_database_v4";

const VIEW_KEY = "highlight_visible_v4";

let database = new Set(

GM_getValue(DB_KEY, [])

);

let highlightVisible =

GM_getValue(VIEW_KEY, true);

let highlightElements = [];

let matchCount = 0;

// ---------------------------------------------

// Database parsing

// ---------------------------------------------

function parseDatabase(text) {

const result = new Set();

const regex =

/\b(?:BT|Fanza|d_|FZ_|FZ|GC|RA|RJ|VJ|Steam|ST|VN)\d+\b/gi;

let match;

while ((match = regex.exec(text)) !== null) {

result.add(

match[0].toUpperCase()

);

}

return result;

}

function saveDatabase(newDatabase) {

database = newDatabase;

GM_setValue(

DB_KEY,

[...database]

);

}

// ---------------------------------------------

// Highlight cleanup

// ---------------------------------------------

function clearHighlights() {

for (const span of highlightElements) {

const parent =

span.parentNode;

if (!parent)

continue;

parent.replaceChild(

document.createTextNode(

span.textContent

),

span

);

parent.normalize();

}

highlightElements = [];

matchCount = 0;

}

// ---------------------------------------------

// Highlight style

// ---------------------------------------------

function applyHighlightStyle(span) {

if (highlightVisible) {

span.style.backgroundColor =

"yellow";

span.style.color =

"black";

span.style.fontWeight =

"bold";

}

else {

span.style.backgroundColor =

"";

span.style.color =

"";

span.style.fontWeight =

"";

}

}

function refreshHighlightAppearance() {

for (const span of highlightElements) {

applyHighlightStyle(span);

}

}

// ---------------------------------------------

// Scan webpage

// ---------------------------------------------

function scanPage() {

const areas =

document.querySelectorAll(

CONTENT_SELECTORS.join(",")

);

if (!areas.length)

return;

const textNodes = [];

for (const area of areas) {

const walker =

document.createTreeWalker(

area,

NodeFilter.SHOW_TEXT

);

let node;

while ((node = walker.nextNode())) {

textNodes.push(node);

}

}

for (const textNode of textNodes) {

processTextNode(textNode);

}

}

function processTextNode(textNode) {

const text =

textNode.nodeValue;

const regex =

/\b(?:BT|Fanza|d_|FZ_|FZ|GC|RA|RJ|VJ|Steam|ST|VN)\d+\b/gi;

const matches = [];

let match;

while ((match = regex.exec(text)) !== null) {

const value =

match[0].toUpperCase();

if (database.has(value)) {

matches.push({

start: match.index,

end:

match.index +

match[0].length

});

}

}

if (!matches.length)

return;

const fragment =

document.createDocumentFragment();

let lastIndex = 0;

for (const item of matches) {

fragment.appendChild(

document.createTextNode(

text.substring(

lastIndex,

item.start

)

)

);

const span =

document.createElement(

"span"

);

span.className =

"tm-code-match";

span.textContent =

text.substring(

item.start,

item.end

);

applyHighlightStyle(span);

highlightElements.push(span);

matchCount++;

fragment.appendChild(span);

lastIndex =

item.end;

}

fragment.appendChild(

document.createTextNode(

text.substring(lastIndex)

)

);

textNode.replaceWith(fragment);

}

// ---------------------------------------------

// Public functions used by GUI (Part 2)

// ---------------------------------------------

window.TM_CodeMatcher = {

getDatabaseSize() {

return database.size;

},

getMatchCount() {

return matchCount;

},

updateDatabase(text) {

const newDB =

parseDatabase(text);

saveDatabase(newDB);

clearHighlights();

scanPage();

refreshHighlightAppearance();

},

toggleHighlight() {

highlightVisible =

!highlightVisible;

GM_setValue(

VIEW_KEY,

highlightVisible

);

refreshHighlightAppearance();

return highlightVisible;

},

isHighlightVisible() {

return highlightVisible;

},

loadDatabaseText() {

return [

...database

].join("\n");

}

};

// ---------------------------------------------

// Initial scan

// ---------------------------------------------

window.addEventListener(

"load",

() => {

scanPage();

}

);

// ==================================================

// Isolated Shadow DOM GUI

// ==================================================

(function buildGUI() {

const host = document.createElement("div");

host.style.position = "fixed";

host.style.right = "20px";

host.style.top = "50%";

host.style.transform = "translateY(-50%)";

host.style.zIndex = "2147483647";

document.documentElement.appendChild(host);

const shadow =

host.attachShadow({

mode: "open"

});

shadow.innerHTML = `

<style>

* {

box-sizing:border-box;

font-family:Arial,sans-serif;

}

#bubble {

width:46px;

height:46px;

border-radius:50%;

background:#4285f4;

color:white;

display:flex;

align-items:center;

justify-content:center;

cursor:grab;

user-select:none;

box-shadow:

0 3px 12px rgba(0,0,0,.3);

}

#panel {

display:none;

width:340px;

background:white;

color:#222;

border:1px solid #ccc;

border-radius:10px;

padding:12px;

box-shadow:

0 5px 20px rgba(0,0,0,.25);

}

#header {

display:flex;

justify-content:space-between;

font-weight:bold;

margin-bottom:10px;

cursor:grab;

}

#close {

cursor:pointer;

}

textarea {

width:100%;

height:150px;

resize:none;

padding:8px;

border:1px solid #aaa;

}

.info {

margin:10px 0;

line-height:20px;

}

button {

padding:7px 12px;

border:none;

border-radius:5px;

color:white;

font-weight:bold;

cursor:pointer;

margin-right:5px;

}

#update {

background:#4285f4;

}

#toggle {

background:#34a853;

}

</style>

<div id="bubble">

🔍

</div>

<div id="panel">

<div id="header">

<span>

Code Matcher

</span>

<span id="close">

</span>

</div>

<textarea id="input"

placeholder="Paste BT/Fanza/d_/FZ_/FZ/GC/RA/RJ/VJ/Steam/ST/VN codes here">

</textarea>

<div class="info">

Database:

<span id="db"></span>

<br>

Matches:

<span id="matches"></span>

</div>

<button id="update">

Update Database

</button>

<button id="toggle">

</button>

</div>

`;

const bubble =

shadow.querySelector("#bubble");

const panel =

shadow.querySelector("#panel");

const header =

shadow.querySelector("#header");

const close =

shadow.querySelector("#close");

const input =

shadow.querySelector("#input");

const update =

shadow.querySelector("#update");

const toggle =

shadow.querySelector("#toggle");

const db =

shadow.querySelector("#db");

const matches =

shadow.querySelector("#matches");

input.value =

window.TM_CodeMatcher

.loadDatabaseText();

// ---------------------------------------------

// View update

// ---------------------------------------------

function refreshInfo() {

db.textContent =

window.TM_CodeMatcher

.getDatabaseSize();

matches.textContent =

window.TM_CodeMatcher

.getMatchCount();

toggle.textContent =

window.TM_CodeMatcher

.isHighlightVisible()

? "Highlight ON"

: "Highlight OFF";

toggle.style.background =

window.TM_CodeMatcher

.isHighlightVisible()

? "#34a853"

: "#ea4335";

}

refreshInfo();

// ---------------------------------------------

// Open / close

// ---------------------------------------------

bubble.onclick = (e) => {

if (wasDragging) {

wasDragging = false;

return;

}

const x =

e.clientX;

const y =

e.clientY;

panel.style.display =

"block";

bubble.style.display =

"none";

const panelRect =

panel.getBoundingClientRect();

host.style.left =

(x - panelRect.width + 23) + "px";

host.style.top =

(y - 23) + "px";

host.style.right =

"auto";

host.style.transform =

"none";

keepInsideViewport();

};

close.onclick = (e) => {

e.stopPropagation();

const closeRect =

close.getBoundingClientRect();

const centerX =

closeRect.left +

(closeRect.width / 2);

const centerY =

closeRect.top +

(closeRect.height / 2);

host.style.left =

(centerX - 23) + "px";

host.style.top =

(centerY - 23) + "px";

host.style.right =

"auto";

host.style.transform =

"none";

panel.style.display =

"none";

bubble.style.display =

"flex";

wasDragging = false;

};

// ---------------------------------------------

// Buttons

// ---------------------------------------------

update.onclick = () => {

window.TM_CodeMatcher

.updateDatabase(

input.value

);

refreshInfo();

};

toggle.onclick = () => {

window.TM_CodeMatcher

.toggleHighlight();

refreshInfo();

};

// ---------------------------------------------

// Dragging

// ---------------------------------------------

let wasDragging = false;

function clamp(value, min, max) {

return Math.min(

Math.max(value, min),

max

);

}

function keepInsideViewport() {

const rect =

host.getBoundingClientRect();

let left =

rect.left;

let top =

rect.top;

left =

clamp(

left,

0,

window.innerWidth -

rect.width

);

top =

clamp(

top,

0,

window.innerHeight -

rect.height

);

host.style.left =

left + "px";

host.style.top =

top + "px";

host.style.right =

"auto";

host.style.transform =

"none";

}

function makeDraggable(element) {

let dragging = false;

let offsetX = 0;

let offsetY = 0;

let moved = false;

element.addEventListener(

"pointerdown",

e => {

if (

e.target.closest("#close") ||

e.target.tagName === "BUTTON" ||

e.target.tagName === "TEXTAREA"

) {

return;

}

dragging = true;

moved = false;

const rect =

host.getBoundingClientRect();

offsetX =

e.clientX -

rect.left;

offsetY =

e.clientY -

rect.top;

element.setPointerCapture(

e.pointerId

);

}

);

element.addEventListener(

"pointermove",

e => {

if (!dragging)

return;

wasDragging = true;

moved = true;

host.style.transform =

"none";

let x =

e.clientX -

offsetX;

let y =

e.clientY -

offsetY;

const rect =

host.getBoundingClientRect();

x =

clamp(

x,

0,

window.innerWidth -

rect.width

);

y =

clamp(

y,

0,

window.innerHeight -

rect.height

);

host.style.left =

x + "px";

host.style.top =

y + "px";

host.style.right =

"auto";

}

);

element.addEventListener(

"pointerup",

() => {

dragging = false;

}

);

}

makeDraggable(bubble);

makeDraggable(header);

window.addEventListener(

"resize",

keepInsideViewport

);

})();

})();


업뎃 기록
  • v1.0 26.8.4

  • v1.1 26.8.4

    • 추가: 게시글 목록의, 게시글 제목도 매치&하이라이트

  • v1.2 26.8.5

    • 버그 수정: 돋보기 GUI 드래고 하고 놓을 시 GUI가 확장하던 걸 고침

    • 편리성 추가: GUI 확장/축소 누를때 이 두 GUI 모드 버튼이 마우스에 집중되도록 GUI 확장/축소하게 변경

현제 버그/문제들/ 후 추가할 것들
  • 웹페이지에서 드래그 선택 시, 이 스크립트 GUI도 선택이 되는 문제

  • 페이지 새로 로딩된 정보를 지속확인해 하이라이트 반영 활성화 MutationObserver (필요성 높음)

  • 하이라이트 토글 단축키 추가, 그걸 GUI 반영 (돋보기 아이콘도 변형)

  • GUI 탭 추가: Exclude : 보유한 게임 리스트(노랑색)와 달리, 본인이 이미 확인한 게임 리스트(빨간) 추가.
    식별번호 드래그 선택 후 단추키 누르고, ‘확인겜 식별추가함’ 알림 띄우기

  • GUI 탭 추가: Forced : 게임 데이터베이스에 강제적으로 추가시킬 (파싱 안 함) 특정 이름

10
9 comments
08/05
08/05
08/05
제거에 저런 코드명만 추출하는 기능이 있으면 이걸 사용하기 좀 더 편하려나요?
"제거" 라는 건 본인 게임 파일들 말하는 건가요? 준비물에도 써 있듯이, 파일트리도 된다고 썼는데, 검색해 보시면 어렵지 않게 찾아서 만드실 수 있습니다. 맨 아래 '현제 버그/문제들/ 후 추가할 것들' 외로 뭐 불편한 게 있나요?
home 엔딩 보긴봤는데
일반
고기조림
08/30 4104 0
Grok 2개월 무료로 받는 방법
정보
iwwdi
08/30 7513 6
손번역/MTPE 게임 리뷰 NEW #1
후기 및 공략
백탁액기사단
08/30 6771 7
[복구 요청] 폐기물 - RJ01409785 회생의 신사 v1.0.0.3 廻生ノ社
요청
luxem
08/30 3638 -1
[요청복구] Treasure 내가 찾은 대체 할 수 없는 것
복구
뺏기는게좋은걸
08/30 31040 26
슈퍼 리얼 마작 실행 안되는 사람
정보
colocoloc
08/30 6942 1
[직번] 강제 미소녀 검사 - 스파이로 의심받은 여자
동인
sgdvl
08/30 54442 71
[요청복구] 다우너 학생회 임원과 방과 후 남겨진 정액 수확 성지도~ "빨리 끝내고 싶은데…" 라고 말하면서 정액이 비어버릴 때까지 안 보내주는 개변태 농후 봉사~
소리
ilyug2
08/30 18149 32
게임 추천좀 해주세요 행님들
질문
graygaja
08/30 4498 -1
오치카노 어나더 이미지번역은..분량이 너무많아서 할 엄두가 안남
일반
Siver-Ghost
08/30 4761 8
[구매보급][번역요청] AI,TS 변전의 마녀 -나락 도시 그린자
미번
마카라이트
08/30 18502 27
미번(ai( 학창 시절 동경했던 선배(36세·셀럽 아내)를 집에 초대했더니, 질내사정을 애원하고 목구멍 깊숙이 찌르는 펠라티오로 자위하며 계속 절정에 달했던 이야기
동인
JK
08/30 41487 10
시간용사 약스포) 와 궁극의 2택이네 ㅋㅋㅋㅋ
일반
reconquesta
08/30 4714 0
[복구요청] 대마인 유키카제1, 2
요청
illlililiilii
08/30 5194 1
규정 관련 글은 신문고에 묻는게 본인도 편하지않냐
일반
할머니
08/30 3939 -2
영웅전희www 중파 보기 너무 힘든데
질문
송편
08/30 3897 0
요청복구 3종 (14일)
복구
쌀쌀쌀쌀
08/30 37325 34
[구매보급] ai) chui 작가 No.1 ~ No.30 모음
영상
푸니푸니
08/30 38830 34
후타, 후여, NT?R) [momomo] 꼬추가 크다고 이지메하는 건 좋지 않아요 엣... 크다아~
동인
라비쉬
08/30 51995 60
업로더가 입대했을 때는 복구글 요청을 어케 해야하지
질문
yokoboko
08/30 3958 -4
그래도 고양이와 던전 참 신기한게
일반
garnblueming
08/30 4239 0
최근에 굉장히 맘에드는 고전게임 여캐
야짤
superkiller123
08/30 12029 13
[복구요청] Evil Goddess
요청
assm7
08/30 4443 0
ㅅㅍ) 고앵이와 던전 허접후기
후기 및 공략
떡꼬치맨
08/30 7329 4
Traveler Inn Tales 처음에 길드 접수원이랑 얘기하는거 게임 플레이에 영향있음?
질문
kmo018
08/30 3681 0
만화 찾아주실분 ㅠ
질문
aksi9405
08/30 3391 1
이런 장면 나쁘지않아
일반
쩝냡
08/30 4632 8
아 우리나라는 사촌형하고 결혼이 안 되는구나
일반
딴건몰라도퍼리는안된다
08/30 3925 -4
보이스 안끊기고 이어지게하는법 없나요?
질문
시소시소
08/30 3847 0
아아아 제발
일반
라비쉬
08/30 4633 4