코네 이미지 뷰어 개선 스크립트
코네 자체 이미지 뷰어에 전체화면이 없어서 간단하게 AI 사용해서 만들어봤음
이미지 완전 전체화면 + 마우스(한손)으로 모든 조작 or 키보드로 조작 가능
사용법:
0. Tampermonkey 확장프로그램 설치 후, + 버튼으로 아래 내용 복붙
1. 이미지 클릭해서 기존처럼 뷰어열기
2. 우상단 전체화면 버튼 or 키보드 I키 누르기로 전체화면
1
3. 우상단 X버튼 클릭 or I키로 전체화면 및 이미지뷰어 탈출
1
방향키, 마우스 휠로 이미지 이동 가능
aHR0cHM6Ly9raW8uYWMvYy9kMml2bk1FR25EUTV6X3RQcWpoUEti
코드 보기
// ==UserScript==
// @name Kone.gg 뷰어 확장 기능
// @namespace https://kone.gg/
// @version 1.9
// @description 'i' 키/버튼으로 뷰어/전체화면 제어, 전체화면 나가기 버튼으로 뷰어 동시 닫기, 이미지 전환 애니메이션 제거 기능을 제공합니다.
// @author AI Assistant & User
// @match https://kone.gg/*
// @grant GM_addStyle
// @run-at document-idle
// @license MIT
// ==/UserScript==
(function() {
'use strict';
const SCRIPT_ID = 'konegg-ui-toggle-script';
// === 스타일 주입 ===
GM_addStyle(`
/* UI 숨김 스타일 */
.viewer-container.ui-hidden .viewer-header,
.viewer-container.ui-hidden .viewer-footer {
display: none !important;
}
/* Swiper 뷰어 슬라이드 애니메이션 제거 */
.swiper-wrapper {
transition-duration: 0.001s !important;
}
/* 전체화면 나가기 버튼 스타일 */
#exit-fullscreen-button {
position: fixed;
top: 1rem;
right: 1rem;
z-index: 2147483647;
display: none;
width: 48px;
height: 48px;
background-color: rgba(0, 0, 0, 0.4);
color: white;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 50%;
cursor: pointer;
align-items: center;
justify-content: center;
}
#exit-fullscreen-button:hover {
background-color: rgba(0, 0, 0, 0.7);
}
`);
// === 기능 함수 ===
const toggleUI = (container) => {
if (container) {
container.classList.toggle('ui-hidden');
}
};
const setupViewer = (viewerContainer) => {
if (viewerContainer.dataset.uiToggleSetup === 'true') return;
viewerContainer.dataset.uiToggleSetup = 'true';
viewerContainer.classList.add('viewer-container');
const header = viewerContainer.querySelector('div.flex.w-full.justify-end');
if (!header) return;
header.classList.add('viewer-header');
const footer = viewerContainer.querySelector('div.flex.flex-col.md\\:flex-row');
if (footer) footer.classList.add('viewer-footer');
// 전체화면 버튼 추가 (이미 있다면 추가하지 않음)
if (!header.querySelector('.fullscreen-btn')) {
const closeButton = header.querySelector('button:last-child');
if (closeButton) {
const fullscreenButton = document.createElement('button');
fullscreenButton.className = `${closeButton.className} fullscreen-btn`;
fullscreenButton.innerHTML = ``;
fullscreenButton.onclick = (e) => {
e.stopPropagation();
if (!document.fullscreenElement) {
document.documentElement.requestFullscreen();
}
};
header.insertBefore(fullscreenButton, closeButton);
}
}
// UI 토글 버튼 이벤트 설정
const gridButton = header.querySelector('button');
if (gridButton && !gridButton.dataset.uiToggleEvent) {
gridButton.dataset.uiToggleEvent = 'true';
gridButton.addEventListener('click', (e) => {
e.preventDefault();
e.stopPropagation();
toggleUI(viewerContainer);
}, true);
}
};
// === 스크립트 초기 실행 로직 ===
if (document.getElementById(SCRIPT_ID)) return;
const scriptMarker = document.createElement('div');
scriptMarker.id = SCRIPT_ID;
scriptMarker.style.display = 'none';
document.body.appendChild(scriptMarker);
if (!document.getElementById('exit-fullscreen-button')) {
const exitFullscreenButton = document.createElement('button');
exitFullscreenButton.id = 'exit-fullscreen-button';
exitFullscreenButton.innerHTML = ``;
// [수정됨] 'X' 버튼 클릭 시 전체화면 해제 및 뷰어 닫기
exitFullscreenButton.onclick = () => {
if (document.fullscreenElement) {
// 1. 전체화면 해제
document.exitFullscreen();
// 2. 뷰어를 찾아 닫기 버튼을 클릭
const viewer = document.querySelector('.viewer-container');
if (viewer) {
const closeButton = viewer.querySelector('.viewer-header button:last-child');
if (closeButton) {
closeButton.click();
}
}
}
};
document.body.appendChild(exitFullscreenButton);
}
// === 이벤트 리스너 ===
const observer = new MutationObserver((mutationsList) => {
for (const mutation of mutationsList) {
if (mutation.addedNodes.length) {
const viewerContainer = document.querySelector('div.fixed.z-50 div.swiper')?.closest('div.fixed.z-50');
if (viewerContainer) {
setupViewer(viewerContainer);
}
}
}
});
document.addEventListener('keydown', (e) => {
const activeElement = document.activeElement;
const isTyping = activeElement && (activeElement.tagName === 'INPUT' || activeElement.tagName === 'TEXTAREA' || activeElement.isContentEditable);
if (isTyping) return;
if (e.key.toLowerCase() === 'i') {
e.preventDefault();
const viewer = document.querySelector('.viewer-container:not([style*="display: none"])');
if (viewer) { // 뷰어가 열려있을 때
if (document.fullscreenElement) {
document.exitFullscreen();
const closeButton = viewer.querySelector('.viewer-header button:last-child');
if (closeButton) closeButton.click();
} else {
document.documentElement.requestFullscreen();
}
} else { // 뷰어가 닫혀있을 때
const openViewerButton = Array.from(document.querySelectorAll('div[role="menuitem"]'))
.find(item => item.textContent.trim() === '뷰어 열기');
if (openViewerButton) {
openViewerButton.click();
setTimeout(() => {
if (!document.fullscreenElement) {
document.documentElement.requestFullscreen().catch(err => {});
}
}, 100);
}
}
}
});
document.addEventListener('fullscreenchange', () => {
const currentViewer = document.querySelector('.viewer-container');
const exitBtn = document.getElementById('exit-fullscreen-button');
if (document.fullscreenElement) {
if (currentViewer) currentViewer.classList.add('ui-hidden');
if (exitBtn) exitBtn.style.display = 'flex';
} else {
if (currentViewer) currentViewer.classList.remove('ui-hidden');
if (exitBtn) exitBtn.style.display = 'none';
}
});
observer.observe(document.body, {
childList: true,
subtree: true
});
})(); 10
12 comments
공지
AI 이미지 관련 공지 및 관련 규정 수정 공지
1uF
05/02
61778
22
AI 이미지 관련 공지 및 관련 규정 수정 공지
공지
1uF
05/02 61778 22
공지
‼️뉴비 필독 가이드‼️
1uF
05/02
92508
134
‼️뉴비 필독 가이드‼️
공지
1uF
05/02 92508 134
공지
🔔[필독] 채널 규정 & 신문고 (2026 04 05~)
SK
04/05
206452
-25
🔔[필독] 채널 규정 & 신문고 (2026 04 05~)
공지
SK
04/05 206452 -25
공지
🔔[필독] 탭 별 이용 가이드 (20260206~)
Etrick
02/05
254865
-41
🔔[필독] 탭 별 이용 가이드 (20260206~)
공지
Etrick
02/05 254865 -41
공지
[필독] 서브에 자주 올라오는 여러 가지 질문 모음 (20251026~)
SK
05/17/25
1244454
-14
[필독] 서브에 자주 올라오는 여러 가지 질문 모음 (20251026~)
공지
SK
05/17/25 1244454 -14
유틸
압축파일 썸네일 미리보기 프로그램
fc6974
12/01/25
11587
54
압축파일 썸네일 미리보기 프로그램
유틸
fc6974
12/01/25 11587 54
유틸
[노모이미지만] 조심의 마도구 ~강하게 아름다운 모험자의 최후~ ver.1.3.0
미스터장
11/30/25
9535
38
[노모이미지만] 조심의 마도구 ~강하게 아름다운 모험자의 최후~ ver.1.3.0
유틸
미스터장
11/30/25 9535 38
유틸
게시판 추천 수 필터링 스크립트
qqoro
11/28/25
2209
4
게시판 추천 수 필터링 스크립트
유틸
qqoro
11/28/25 2209 4
유틸
RJ01461468 히토즈마이스터!! 미니게임 간단화
순애아니면죽는사람
11/28/25
16690
7
RJ01461468 히토즈마이스터!! 미니게임 간단화
유틸
순애아니면죽는사람
11/28/25 16690 7
유틸
몬파라 3.06 편의성 모드
아르
11/26/25
4061
12
몬파라 3.06 편의성 모드
유틸
아르
11/26/25 4061 12
유틸
저주받은 갑옷2 후원의상+서큐버스 dlc[2025.11.26 오전7시 수정]
liberty
11/25/25
8695
12
저주받은 갑옷2 후원의상+서큐버스 dlc[2025.11.26 오전7시 수정]
유틸
liberty
11/25/25 8695 12
유틸
케모노,히토미,X,유튜브 등등 downloader gallery-dl, yt-dlp 활용
noname
11/25/25
9724
16
케모노,히토미,X,유튜브 등등 downloader gallery-dl, yt-dlp 활용
유틸
noname
11/25/25 9724 16
유틸
Starmaker Story 모드
0Plm0
11/25/25
5831
7
Starmaker Story 모드
유틸
0Plm0
11/25/25 5831 7
유틸
Romantic Escapades 한시 정답
생각하는고래
11/24/25
3447
4
Romantic Escapades 한시 정답
유틸
생각하는고래
11/24/25 3447 4
유틸
줍줍한 유니티6 기계번역세트(기대하지 마십시오.)(재업)
와랄랄라라
11/24/25
14167
25
줍줍한 유니티6 기계번역세트(기대하지 마십시오.)(재업)
유틸
와랄랄라라
11/24/25 14167 25
유틸
texture replacer v1.2.0.4
kumarin
11/23/25
10736
34
texture replacer v1.2.0.4
유틸
kumarin
11/23/25 10736 34
유틸
타락신관 첫상대 미표시 버그 패치
딸기라떼
11/23/25
13507
6
타락신관 첫상대 미표시 버그 패치
유틸
딸기라떼
11/23/25 13507 6
유틸
타락신관 조이플 이미지 오류 해결
yeppi
11/23/25
7756
21
타락신관 조이플 이미지 오류 해결
유틸
yeppi
11/23/25 7756 21
유틸
이미지 누락 임시 처리) RJ239186 hazumi
ㅇㅇ
11/23/25
1699
0
이미지 누락 임시 처리) RJ239186 hazumi
유틸
ㅇㅇ
11/23/25 1699 0
유틸
개소리 제거) RJ289056 [KICHUREA] 빌 네메레트 Villnammellet 1.201 손번역 기준
ㅇㅇ
11/22/25
2299
7
개소리 제거) RJ289056 [KICHUREA] 빌 네메레트 Villnammellet 1.201 손번역 기준
유틸
ㅇㅇ
11/22/25 2299 7
유틸
타락신관: 여동생과 악마의 혈통 몰디브, 조이플 한국언어 파일
ssamjang
11/21/25
5720
9
타락신관: 여동생과 악마의 혈통 몰디브, 조이플 한국언어 파일
유틸
ssamjang
11/21/25 5720 9
유틸
후타)[복구]무표정한 후타나리는 착정 생물과의 교미에 절대 매료되지 않는다 노모패치+이전 작품 노모패치
레가토
11/21/25
4710
3
후타)[복구]무표정한 후타나리는 착정 생물과의 교미에 절대 매료되지 않는다 노모패치+이전 작품 노모패치
유틸
레가토
11/21/25 4710 3
유틸
코네 링크 변환기
ㅇㅇ
11/19/25
10088
6
코네 링크 변환기
유틸
ㅇㅇ
11/19/25 10088 6
유틸
ai 클로드랑 만든 알만툴 검수 스크립트 mv용
루파조아
11/17/25
10324
6
ai 클로드랑 만든 알만툴 검수 스크립트 mv용
유틸
루파조아
11/17/25 10324 6
유틸
RPG MV/MZ 실시간 번역기 - 1.3
mrpls
11/15/25
22753
116
RPG MV/MZ 실시간 번역기 - 1.3
유틸
mrpls
11/15/25 22753 116
유틸
[요청복구] 감옥용사 조이플 구동 패치
감비아
11/14/25
7562
7
[요청복구] 감옥용사 조이플 구동 패치
유틸
감비아
11/14/25 7562 7
유틸
[노모패치] 란스03
imakotou
11/14/25
12824
70
[노모패치] 란스03
유틸
imakotou
11/14/25 12824 70
유틸
RPG MV/MZ 실시간 번역기 0.5 - 종말 얼터 에고이즘 패치
mrpls
11/11/25
7937
12
RPG MV/MZ 실시간 번역기 0.5 - 종말 얼터 에고이즘 패치
유틸
mrpls
11/11/25 7937 12
유틸
NTR 던전] 맵 수정으로 돈 치트.
전여친
11/11/25
3721
10
NTR 던전] 맵 수정으로 돈 치트.
유틸
전여친
11/11/25 3721 10
유틸
리코의 불가사의한 심부름 - 스위치를 더 투명하게
ㅇㅇ
11/10/25
2872
3
리코의 불가사의한 심부름 - 스위치를 더 투명하게
유틸
ㅇㅇ
11/10/25 2872 3
유틸
종말얼터 아쉬운부분 약간 수정함
yuri88
11/10/25
3078
6
종말얼터 아쉬운부분 약간 수정함
유틸
yuri88
11/10/25 3078 6
유틸
포레스티아 낚시 파일 수정본
geekel
11/09/25
4683
21
포레스티아 낚시 파일 수정본
유틸
geekel
11/09/25 4683 21
유틸
Cursed Armor 2 회상방 열기 귀찮은 사람은 쓰는게 좋은 치트
roandoo
11/08/25
4420
2
Cursed Armor 2 회상방 열기 귀찮은 사람은 쓰는게 좋은 치트
유틸
roandoo
11/08/25 4420 2
유틸
demosaic colMask
kumarin
11/06/25
37236
57
demosaic colMask
유틸
kumarin
11/06/25 37236 57
유틸
후타)잠꾸러기 후타나리의 착정던전 구출기 노모패치
레가토
11/03/25
12595
18
후타)잠꾸러기 후타나리의 착정던전 구출기 노모패치
유틸
레가토
11/03/25 12595 18
s/somisoft
• 143,985 subscribers여러가지 다루는 서브
Created 05/17/2025, 14:58:43
Deleted comment.
Deleted comment.
Deleted comment.