코네 이미지 뷰어 개선 스크립트
코네 자체 이미지 뷰어에 전체화면이 없어서 간단하게 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
62260
22
AI 이미지 관련 공지 및 관련 규정 수정 공지
공지
1uF
05/02 62260 22
공지
‼️뉴비 필독 가이드‼️
1uF
05/02
93085
134
‼️뉴비 필독 가이드‼️
공지
1uF
05/02 93085 134
공지
🔔[필독] 채널 규정 & 신문고 (2026 04 05~)
SK
04/05
206819
-25
🔔[필독] 채널 규정 & 신문고 (2026 04 05~)
공지
SK
04/05 206819 -25
공지
🔔[필독] 탭 별 이용 가이드 (20260206~)
Etrick
02/05
255357
-41
🔔[필독] 탭 별 이용 가이드 (20260206~)
공지
Etrick
02/05 255357 -41
공지
[필독] 서브에 자주 올라오는 여러 가지 질문 모음 (20251026~)
SK
05/17/25
1244560
-14
[필독] 서브에 자주 올라오는 여러 가지 질문 모음 (20251026~)
공지
SK
05/17/25 1244560 -14
영상
(한글자막) 쉽게 휩쓸리는 폭유 메이드씨가 임신 할 때까지
꽃사슴
05/06
22116
145
(한글자막) 쉽게 휩쓸리는 폭유 메이드씨가 임신 할 때까지
영상
꽃사슴
05/06 22116 145
번역
[기계번역] Love & Jealousy [Act 4]
karuparu13
05/06
24442
77
[기계번역] Love & Jealousy [Act 4]
번역
karuparu13
05/06 24442 77
영상
[구매보급] [44Gv44GE44Gt ] 철도가키
바람
05/06
34333
159
[구매보급] [44Gv44GE44Gt ] 철도가키
영상
바람
05/06 34333 159
영상
[5/5] 엽빛나 (ZZZ)
브레머튼
05/06
13530
102
[5/5] 엽빛나 (ZZZ)
영상
브레머튼
05/06 13530 102
영상
(한글자막) 쉽게 휩쓸리는 무뚝뚝한 폭유 아가씨가 임신 할 때까지
꽃사슴
05/06
25851
141
(한글자막) 쉽게 휩쓸리는 무뚝뚝한 폭유 아가씨가 임신 할 때까지
영상
꽃사슴
05/06 25851 141
동인
[미번/번역요청][matsuzawa muni]Nikutai Hensai ~Shakkin Jigoku no China Musume~ | Debt Repayment In Kind
오곡아줌마
05/06
11088
21
[미번/번역요청][matsuzawa muni]Nikutai Hensai ~Shakkin Jigoku no China Musume~ | Debt Repayment In Kind
동인
오곡아줌마
05/06 11088 21
번역
[한글패치]기계 소녀가 엮어내는 계보 vol.1-리오나의 착정 실험실_수정2
아르
05/06
60113
164
[한글패치]기계 소녀가 엮어내는 계보 vol.1-리오나의 착정 실험실_수정2
번역
아르
05/06 60113 164
영상
[나의 히어로 아카데미아] 랙돌X데쿠
Ghost
05/06
28092
141
[나의 히어로 아카데미아] 랙돌X데쿠
영상
Ghost
05/06 28092 141
번역
[기번]Bondage Club
브브븟
05/06
38289
170
[기번]Bondage Club
번역
브브븟
05/06 38289 170
창작
🔞버그를 수정했고, 마지막 그림 공부를 했습니다.
폭8맛
05/06
4498
17
🔞버그를 수정했고, 마지막 그림 공부를 했습니다.
창작
폭8맛
05/06 4498 17
영상
Br@n)벽람항로 하우덴 리우 + 통합편집
비밀봉투
05/06
14029
92
Br@n)벽람항로 하우덴 리우 + 통합편집
영상
비밀봉투
05/06 14029 92
소리
[구매보급]【저음 오호성】 무표정한 후배 - 엄청 야한 마코토의 구애 격렬한 절정 섹스
이름뭐하지
05/06
9593
73
[구매보급]【저음 오호성】 무표정한 후배 - 엄청 야한 마코토의 구애 격렬한 절정 섹스
소리
이름뭐하지
05/06 9593 73
동인
보추)[Locon]궁도 남자 총집편
요요코코
05/06
15549
33
보추)[Locon]궁도 남자 총집편
동인
요요코코
05/06 15549 33
야짤
AI, 청아) 메스가키 참교육
miso5
05/06
14793
94
AI, 청아) 메스가키 참교육
야짤
miso5
05/06 14793 94
소리
[구매보급]마성의 제자 - 아이 있는 교사를 사랑하는 천진난만한 여고생의 역 네토리
이름뭐하지
05/06
7522
69
[구매보급]마성의 제자 - 아이 있는 교사를 사랑하는 천진난만한 여고생의 역 네토리
소리
이름뭐하지
05/06 7522 69
영상
영화관에서 제인 도 & 와이즈 (ZZZ)
브레머튼
05/06
13634
85
영화관에서 제인 도 & 와이즈 (ZZZ)
영상
브레머튼
05/06 13634 85
소리
[귀 핧기 특화] 핥기 페티시 × 프린세스 ~귀 안쪽까지 "평생 너무 좋아"를 핧짝 흘려보내는 신혼 페로러브 밀착 아가 만들기~
maruran
05/06
8968
81
[귀 핧기 특화] 핥기 페티시 × 프린세스 ~귀 안쪽까지 "평생 너무 좋아"를 핧짝 흘려보내는 신혼 페로러브 밀착 아가 만들기~
소리
maruran
05/06 8968 81
번역
[v1.286 patreon반영(5/7) , v1.282(5/6)] 비월선행록 번역파일만 [AI 직접 번역]
handlejk
05/06
64543
298
[v1.286 patreon반영(5/7) , v1.282(5/6)] 비월선행록 번역파일만 [AI 직접 번역]
번역
handlejk
05/06 64543 298
영상
[신작/4K48FPS] 고백 1
쿠지락스
05/06
19185
137
[신작/4K48FPS] 고백 1
영상
쿠지락스
05/06 19185 137
영상
[신작/4K48FPS] 성광섬희 포니 세레스 2
쿠지락스
05/06
19270
162
[신작/4K48FPS] 성광섬희 포니 세레스 2
영상
쿠지락스
05/06 19270 162
영상
[신작/4K48FPS] 나의 이상적인 이세계 생활 4
쿠지락스
05/06
14222
168
[신작/4K48FPS] 나의 이상적인 이세계 생활 4
영상
쿠지락스
05/06 14222 168
영상
[신작/4K48FPS] 쉬운 암컷들의 나날 2
쿠지락스
05/06
26248
323
[신작/4K48FPS] 쉬운 암컷들의 나날 2
영상
쿠지락스
05/06 26248 323
영상
[신작/4K48FPS] 치매문릉 1
쿠지락스
05/06
19200
225
[신작/4K48FPS] 치매문릉 1
영상
쿠지락스
05/06 19200 225
영상
[신작/4K48FPS] 레이카는 화려한 나의 여왕 3
쿠지락스
05/06
12883
148
[신작/4K48FPS] 레이카는 화려한 나의 여왕 3
영상
쿠지락스
05/06 12883 148
영상
벨 (ZZZ)
브레머튼
05/06
12779
95
벨 (ZZZ)
영상
브레머튼
05/06 12779 95
영상
[신작/4K48FPS] 끝내 아내가 되어 1
쿠지락스
05/06
15983
140
[신작/4K48FPS] 끝내 아내가 되어 1
영상
쿠지락스
05/06 15983 140
영상
[신작/4K48FPS] 사랑은 갸루에서 시작되는 운명 1
쿠지락스
05/06
23447
224
[신작/4K48FPS] 사랑은 갸루에서 시작되는 운명 1
영상
쿠지락스
05/06 23447 224
영상
[신작/4K48FPS] 거유 두 명이 없으면 안 서는 남편을 위해 친구를 데리고 온 아내 1,2
쿠지락스
05/06
24130
409
[신작/4K48FPS] 거유 두 명이 없으면 안 서는 남편을 위해 친구를 데리고 온 아내 1,2
영상
쿠지락스
05/06 24130 409
유틸
(코이카츠) 소전 캐릭 2명 프리셋
pst0025
05/06
6890
21
(코이카츠) 소전 캐릭 2명 프리셋
유틸
pst0025
05/06 6890 21
소리
오나홀 형태따기 샘플이 되어준 심술궂고 쿨한 후배OL의 조롱과 거짓신음 오나홓 대딸
maruran
05/06
17620
79
오나홀 형태따기 샘플이 되어준 심술궂고 쿨한 후배OL의 조롱과 거짓신음 오나홓 대딸
소리
maruran
05/06 17620 79
s/somisoft
• 143,985 subscribers여러가지 다루는 서브
Created 05/17/2025, 14:58:43
Deleted comment.
Deleted comment.
Deleted comment.