코네 이미지 뷰어 개선 스크립트
코네 자체 이미지 뷰어에 전체화면이 없어서 간단하게 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
61798
22
AI 이미지 관련 공지 및 관련 규정 수정 공지
공지
1uF
05/02 61798 22
공지
‼️뉴비 필독 가이드‼️
1uF
05/02
92553
134
‼️뉴비 필독 가이드‼️
공지
1uF
05/02 92553 134
공지
🔔[필독] 채널 규정 & 신문고 (2026 04 05~)
SK
04/05
206529
-25
🔔[필독] 채널 규정 & 신문고 (2026 04 05~)
공지
SK
04/05 206529 -25
공지
🔔[필독] 탭 별 이용 가이드 (20260206~)
Etrick
02/05
254918
-41
🔔[필독] 탭 별 이용 가이드 (20260206~)
공지
Etrick
02/05 254918 -41
공지
[필독] 서브에 자주 올라오는 여러 가지 질문 모음 (20251026~)
SK
05/17/25
1244475
-14
[필독] 서브에 자주 올라오는 여러 가지 질문 모음 (20251026~)
공지
SK
05/17/25 1244475 -14
영상
[복구] U3V6dW1laXNHb29k 작가 모음
sodier12
05/27
10425
67
[복구] U3V6dW1laXNHb29k 작가 모음
영상
sodier12
05/27 10425 67
동인
Shimanto Shisakugata-사텐씨 시리즈 모음
k8625
05/27
11786
68
Shimanto Shisakugata-사텐씨 시리즈 모음
동인
k8625
05/27 11786 68
영상
[엔드필드] 레바테인 (BGM 유/무)
브레머튼
05/27
6238
57
[엔드필드] 레바테인 (BGM 유/무)
영상
브레머튼
05/27 6238 57
동인
[Isenori] 음침한 여동생을 『교육』해서 쾌락 중독의 육변기로 만든다 29
요요코코
05/27
12037
31
[Isenori] 음침한 여동생을 『교육』해서 쾌락 중독의 육변기로 만든다 29
동인
요요코코
05/27 12037 31
동인
Taira Tsukune-최애와 뒤바뀐 한계 오타쿠군
k8625
05/27
12605
52
Taira Tsukune-최애와 뒤바뀐 한계 오타쿠군
동인
k8625
05/27 12605 52
앱
[손번역] Phoenixes v16 (검수 완료) (안드로이드 모바일 포팅버전)
buzijaji
05/27
5407
48
[손번역] Phoenixes v16 (검수 완료) (안드로이드 모바일 포팅버전)
앱
buzijaji
05/27 5407 48
복구
[요청복구] 사실은 에로했던 동화 빨간망토
zadvoskoi
05/27
6880
27
[요청복구] 사실은 에로했던 동화 빨간망토
복구
zadvoskoi
05/27 6880 27
동인
prototype teens
kifbodo245
05/27
7752
31
prototype teens
동인
kifbodo245
05/27 7752 31
야짤
95. AI, 셀레스포니아, 청아) 두가지 맛 아마네
miso5
05/27
5922
89
95. AI, 셀레스포니아, 청아) 두가지 맛 아마네
야짤
miso5
05/27 5922 89
소리
[총 4편] 뒷계정 여자의 오호 신음소리 자위&섹스 음성 투고 시리즈
9ya
05/27
5364
47
[총 4편] 뒷계정 여자의 오호 신음소리 자위&섹스 음성 투고 시리즈
소리
9ya
05/27 5364 47
미번
[미번/구매보급] RJ01481281 頽廃のシスター
Qdaq1213
05/27
5664
27
[미번/구매보급] RJ01481281 頽廃のシスター
미번
Qdaq1213
05/27 5664 27
번역
[AI번역]슈가 라이프(버그 있음)
솔라셀
05/27
14861
88
[AI번역]슈가 라이프(버그 있음)
번역
솔라셀
05/27 14861 88
미번
[미번][이종간][구매보급] RJ208892 シーイルサーバー
샤이닝
05/27
6439
30
[미번][이종간][구매보급] RJ208892 シーイルサーバー
미번
샤이닝
05/27 6439 30
창작
자작 게임) 마법소녀 사키 ~악으로 떨어져 타락~
곰돌123
05/27
4830
117
자작 게임) 마법소녀 사키 ~악으로 떨어져 타락~
창작
곰돌123
05/27 4830 117
동인
Tsukumaru-TS해서 파파의 야한 딸이 되는 아르바이트 그리고 딸로 타락할 때까지가 세트
k8625
05/27
8856
52
Tsukumaru-TS해서 파파의 야한 딸이 되는 아르바이트 그리고 딸로 타락할 때까지가 세트
동인
k8625
05/27 8856 52
번역
[AI번역][구매보급]무치 무지 착각속의 생활 + 신생 무치 무치 시골 생활 (수정1)
솔라셀
05/27
15187
98
[AI번역][구매보급]무치 무지 착각속의 생활 + 신생 무치 무치 시골 생활 (수정1)
번역
솔라셀
05/27 15187 98
번역
[배틀 퍽][일부 움떡][역간] 서큐버스 아카데미아 어펜드 개조 버전 공유
V
05/27
14972
139
[배틀 퍽][일부 움떡][역간] 서큐버스 아카데미아 어펜드 개조 버전 공유
번역
V
05/27 14972 139
동인
Iapoc-칠칠맞은 시스터
k8625
05/27
10402
54
Iapoc-칠칠맞은 시스터
동인
k8625
05/27 10402 54
동인
ai번역 손식질 학생회 회장의 가슴이 표적이 되고 있다
1Q2W3E4R
05/27
8388
42
ai번역 손식질 학생회 회장의 가슴이 표적이 되고 있다
동인
1Q2W3E4R
05/27 8388 42
소리
[구매보급]다우너 소꿉친구의 진짜 질투! 코트가 열리면... ... 마이크로 비키니 차림!?
이름뭐하지
05/27
3995
48
[구매보급]다우너 소꿉친구의 진짜 질투! 코트가 열리면... ... 마이크로 비키니 차림!?
소리
이름뭐하지
05/27 3995 48
번역
1차 수정 [AI/이미지 번역] 소와 양의 잡화점 ver1.01 (이미지 번역 합본)
미식이네
05/27
14809
133
1차 수정 [AI/이미지 번역] 소와 양의 잡화점 ver1.01 (이미지 번역 합본)
번역
미식이네
05/27 14809 133
소리
대마인 RPGX 아키야마 린코 드라마 CD 「암소 대마인 사육 중, 모집) 젖 짜기 사육사」
shiroi
05/27
4163
51
대마인 RPGX 아키야마 린코 드라마 CD 「암소 대마인 사육 중, 모집) 젖 짜기 사육사」
소리
shiroi
05/27 4163 51
번역
[구매보급/자체한글] The Censor 에로 검열관 RJ01117570
kucci231
05/27
22594
156
[구매보급/자체한글] The Censor 에로 검열관 RJ01117570
번역
kucci231
05/27 22594 156
미번
[구매보급] [버전업] RJ01548918 포스트 블러섬 -꽃이 피는 라이히와 사랑의 여제- 26.05.26 ver 1.3.2
gkqisq
05/27
4847
21
[구매보급] [버전업] RJ01548918 포스트 블러섬 -꽃이 피는 라이히와 사랑의 여제- 26.05.26 ver 1.3.2
미번
gkqisq
05/27 4847 21
영상
mmd - 자작 실루엣 야스댄스 모음집
madrush
05/27
10768
220
mmd - 자작 실루엣 야스댄스 모음집
영상
madrush
05/27 10768 220
번역
[기번,번역이식,노모] 요스가노소라 remaster [VJ01000575] v1.00 노모
ㅁㄴㅇㄹ1357
05/27
12328
116
[기번,번역이식,노모] 요스가노소라 remaster [VJ01000575] v1.00 노모
번역
ㅁㄴㅇㄹ1357
05/27 12328 116
번역
[알림] RJ01187378 그 여름 ~미캉의 여름방학~ 검수
gsup7777
05/27
11344
51
[알림] RJ01187378 그 여름 ~미캉의 여름방학~ 검수
번역
gsup7777
05/27 11344 51
번역
[구매보급/자체한글] 『The Censor』 DLC - 음란 타락 뉴스
kucci231
05/27
30493
162
[구매보급/자체한글] 『The Censor』 DLC - 음란 타락 뉴스
번역
kucci231
05/27 30493 162
복구
VJ011811 아나스타샤와 7인의 공주여신 -음문의낙인-
karatro
05/27
6909
27
VJ011811 아나스타샤와 7인의 공주여신 -음문의낙인-
복구
karatro
05/27 6909 27
영상
미브의 비밀 장소 (엔드필드)
브레머튼
05/27
11616
73
미브의 비밀 장소 (엔드필드)
영상
브레머튼
05/27 11616 73
s/somisoft
• 143,985 subscribers여러가지 다루는 서브
Created 05/17/2025, 14:58:43
Deleted comment.
Deleted comment.
Deleted comment.