코네 이미지 뷰어 개선 스크립트
코네 자체 이미지 뷰어에 전체화면이 없어서 간단하게 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
61790
22
AI 이미지 관련 공지 및 관련 규정 수정 공지
공지
1uF
05/02 61790 22
공지
‼️뉴비 필독 가이드‼️
1uF
05/02
92542
134
‼️뉴비 필독 가이드‼️
공지
1uF
05/02 92542 134
공지
🔔[필독] 채널 규정 & 신문고 (2026 04 05~)
SK
04/05
206501
-25
🔔[필독] 채널 규정 & 신문고 (2026 04 05~)
공지
SK
04/05 206501 -25
공지
🔔[필독] 탭 별 이용 가이드 (20260206~)
Etrick
02/05
254906
-41
🔔[필독] 탭 별 이용 가이드 (20260206~)
공지
Etrick
02/05 254906 -41
공지
[필독] 서브에 자주 올라오는 여러 가지 질문 모음 (20251026~)
SK
05/17/25
1244471
-14
[필독] 서브에 자주 올라오는 여러 가지 질문 모음 (20251026~)
공지
SK
05/17/25 1244471 -14
유틸
조이플 오류 및 패치 + 유틸
yeppi
03/04
12024
34
조이플 오류 및 패치 + 유틸
유틸
yeppi
03/04 12024 34
유틸
야식메뉴판 Plus 만들어왔음 - 게임 방주 관리 데스크톱 앱
qqoro
03/04
15059
77
야식메뉴판 Plus 만들어왔음 - 게임 방주 관리 데스크톱 앱
유틸
qqoro
03/04 15059 77
유틸
이터넘 0.9 옛날 버전 브금 모드
외않되
03/04
3855
5
이터넘 0.9 옛날 버전 브금 모드
유틸
외않되
03/04 3855 5
유틸
RJ01389782 비밀 노출 마나카 커스텀 미션 번역2
ㅇㅇ
03/03
14329
18
RJ01389782 비밀 노출 마나카 커스텀 미션 번역2
유틸
ㅇㅇ
03/03 14329 18
유틸
렌파이 전용 언락커 ( 갤러리 언락가능 )
하이바라
03/03
5047
12
렌파이 전용 언락커 ( 갤러리 언락가능 )
유틸
하이바라
03/03 5047 12
유틸
ai번역)RJ01389782 비밀 노출 마나카 모드와 미션 여러 가지
kkkktrrr
03/02
16621
45
ai번역)RJ01389782 비밀 노출 마나카 모드와 미션 여러 가지
유틸
kkkktrrr
03/02 16621 45
유틸
지난번에 만든 (케모노,히토미,X,유튜브 등등 downloader gallery-dl, yt-dlp 활용) 다운로더 GUI 버전으로 만들어봄
noname
03/01
15983
56
지난번에 만든 (케모노,히토미,X,유튜브 등등 downloader gallery-dl, yt-dlp 활용) 다운로더 GUI 버전으로 만들어봄
유틸
noname
03/01 15983 56
유틸
하츠네 미쿠 (코이카츠) 프리셋 공유
pst0025
02/28
13800
32
하츠네 미쿠 (코이카츠) 프리셋 공유
유틸
pst0025
02/28 13800 32
유틸
유니티 클뜯 assetstudio 후속 animestudio
xcandle
02/28
8779
19
유니티 클뜯 assetstudio 후속 animestudio
유틸
xcandle
02/28 8779 19
유틸
Sizer.7z
ㅇㅇ
02/27
8194
13
Sizer.7z
유틸
ㅇㅇ
02/27 8194 13
유틸
RJ01279319 네토라레 히로인 백설 1.1 백로그등 편의성 개조 파일(패치파일만)
apelzl011
02/25
6784
13
RJ01279319 네토라레 히로인 백설 1.1 백로그등 편의성 개조 파일(패치파일만)
유틸
apelzl011
02/25 6784 13
유틸
Digital Contents Library Tool 1.1.7.2 (구 DLsite 퀵 뷰어)
ll-lllllllll
02/24
92516
70
Digital Contents Library Tool 1.1.7.2 (구 DLsite 퀵 뷰어)
유틸
ll-lllllllll
02/24 92516 70
유틸
시니시스타2 1.2.1 폭유 모드
무슨소리니
02/24
19105
39
시니시스타2 1.2.1 폭유 모드
유틸
무슨소리니
02/24 19105 39
유틸
어떤 여자 상사의 비밀 마사지 가게 ver.1.0.6 DRM 해제 실행파일
미스터장
02/23
10094
11
어떤 여자 상사의 비밀 마사지 가게 ver.1.0.6 DRM 해제 실행파일
유틸
미스터장
02/23 10094 11
유틸
감금된 채 딥키스 여성주도~페라 포함~ 노모패치만
미스터장
02/23
7529
6
감금된 채 딥키스 여성주도~페라 포함~ 노모패치만
유틸
미스터장
02/23 7529 6
유틸
MZ 엔진 index 치트 유틸
전적노트
02/22
7436
4
MZ 엔진 index 치트 유틸
유틸
전적노트
02/22 7436 4
유틸
[MySonar] 소수를 위한 오디오 플레이어
hustlyn
02/22
16965
77
[MySonar] 소수를 위한 오디오 플레이어
유틸
hustlyn
02/22 16965 77
유틸
RJ01389782 비밀 노출 마나카 커스텀 미션 번역
ㅇㅇ
02/21
13165
25
RJ01389782 비밀 노출 마나카 커스텀 미션 번역
유틸
ㅇㅇ
02/21 13165 25
유틸
마메32 신버전
a123456789
02/21
40128
191
마메32 신버전
유틸
a123456789
02/21 40128 191
유틸
RJ 미리보기 서포트 (Tempermonkey 기반)
sss-com
02/21
7920
14
RJ 미리보기 서포트 (Tempermonkey 기반)
유틸
sss-com
02/21 7920 14
유틸
복호화 밑 품번 링크 생성기 사이트
vOwOv
02/20
9263
11
복호화 밑 품번 링크 생성기 사이트
유틸
vOwOv
02/20 9263 11
유틸
nursecall 치트
nekoplug
02/20
6936
5
nursecall 치트
유틸
nekoplug
02/20 6936 5
유틸
26.04.18, 90일, 자동 줄바꿈) RJ01540816 ver.1.0.0 js (2).7z
ㅇㅇ
02/19
22777
13
26.04.18, 90일, 자동 줄바꿈) RJ01540816 ver.1.0.0 js (2).7z
유틸
ㅇㅇ
02/19 22777 13
유틸
RJ01438167 여동생과 함께살자 노모 Bepinex 파일
joaja
02/18
16066
24
RJ01438167 여동생과 함께살자 노모 Bepinex 파일
유틸
joaja
02/18 16066 24
유틸
시니시스타2 1.2.1 Slit(가터벨트) 아웃핏 노모 모드
tongpa
02/18
17801
12
시니시스타2 1.2.1 Slit(가터벨트) 아웃핏 노모 모드
유틸
tongpa
02/18 17801 12
유틸
수정 Agent17 0.26.6 cheat mod 버전+ 안티치트,추가치트
a123456789
02/17
15439
10
수정 Agent17 0.26.6 cheat mod 버전+ 안티치트,추가치트
유틸
a123456789
02/17 15439 10
유틸
GameDB 2
심심한개발자
02/17
14011
8
GameDB 2
유틸
심심한개발자
02/17 14011 8
유틸
Agent17 겨울동화 삽 강화 버그 픽스
AKGH
02/17
16619
13
Agent17 겨울동화 삽 강화 버그 픽스
유틸
AKGH
02/17 16619 13
유틸
[후타]pernio의 후타나리 시리즈 노모패치 모음
레가토
02/17
11928
12
[후타]pernio의 후타나리 시리즈 노모패치 모음
유틸
레가토
02/17 11928 12
유틸
렌파이 공용 치트엔진+agent17 치트 쓰는 법
high-hope
02/16
27403
38
렌파이 공용 치트엔진+agent17 치트 쓰는 법
유틸
high-hope
02/16 27403 38
s/somisoft
• 143,985 subscribers여러가지 다루는 서브
Created 05/17/2025, 14:58:43
Deleted comment.
Deleted comment.
Deleted comment.