코네 이미지 뷰어 개선 스크립트
코네 자체 이미지 뷰어에 전체화면이 없어서 간단하게 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
야짤
[Ai 후원] 월요일의 타와와 [69p]
Ghost
04/21
6689
22
[Ai 후원] 월요일의 타와와 [69p]
야짤
Ghost
04/21 6689 22
동인
조루 극복 클리닉
와캬퍄헉농
04/21
17521
57
조루 극복 클리닉
동인
와캬퍄헉농
04/21 17521 57
동인
[Baketsu Purin] [미번, 일본어, 번역 요청] 예전에 거절했던 음각걸은 이제 팔로워가 100만 명이 넘는 폭발적인 사진집 아이돌이 되었네요 1~3
dorodoro
04/21
17154
19
[Baketsu Purin] [미번, 일본어, 번역 요청] 예전에 거절했던 음각걸은 이제 팔로워가 100만 명이 넘는 폭발적인 사진집 아이돌이 되었네요 1~3
동인
dorodoro
04/21 17154 19
소리
[1~3편][구매보급][1편자막]츤데레 메스가키는, 사실은 좋아하는 선생님한테 덮쳐지고 싶어!
이름뭐하지
04/21
16657
90
[1~3편][구매보급][1편자막]츤데레 메스가키는, 사실은 좋아하는 선생님한테 덮쳐지고 싶어!
소리
이름뭐하지
04/21 16657 90
동인
[구매보급][ suzunomoku 작가] 모판의 동굴2
랜드폴
04/21
36145
109
[구매보급][ suzunomoku 작가] 모판의 동굴2
동인
랜드폴
04/21 36145 109
동인
[기번/이종간] ケンタウロスの懐胎。 켄타우로스의 임신
미미모모우우
04/21
39345
139
[기번/이종간] ケンタウロスの懐胎。 켄타우로스의 임신
동인
미미모모우우
04/21 39345 139
동인
[기번/청아/이종간] 魔族令嬢、マウマウ様 恋をする。마족 영애, 마우마우 님 사랑에 빠지다. 1 ~ 2
미미모모우우
04/21
31787
155
[기번/청아/이종간] 魔族令嬢、マウマウ様 恋をする。마족 영애, 마우마우 님 사랑에 빠지다. 1 ~ 2
동인
미미모모우우
04/21 31787 155
영상
용량이 부족해
fm2tm
04/21
36627
158
용량이 부족해
영상
fm2tm
04/21 36627 158
미번
[구매보급] [번역요청] 젠가쿠2
TSN
04/21
8426
35
[구매보급] [번역요청] 젠가쿠2
미번
TSN
04/21 8426 35
영상
[AI, 청아] 엄청 짧은 영상 한개
soxocel777
04/21
29824
72
[AI, 청아] 엄청 짧은 영상 한개
영상
soxocel777
04/21 29824 72
영상
스파클 (스타레일)
브레머튼
04/21
20631
88
스파클 (스타레일)
영상
브레머튼
04/21 20631 88
동인
[기번/검수][kaisen donburi)]-음모를 검사당하는 치히로씨
serdic
04/21
31064
107
[기번/검수][kaisen donburi)]-음모를 검사당하는 치히로씨
동인
serdic
04/21 31064 107
유틸
(코이카츠) - 최신 프리셋 일부 공유
pst0025
04/21
10759
48
(코이카츠) - 최신 프리셋 일부 공유
유틸
pst0025
04/21 10759 48
번역
(최종 재업) [인간 번역] (RJ425610) 마도술사 미사 ~쫒아오는 위험한 부족~
Jack
04/21
66429
301
(최종 재업) [인간 번역] (RJ425610) 마도술사 미사 ~쫒아오는 위험한 부족~
번역
Jack
04/21 66429 301
복구
90일) CI1121.892322 7. Liberty Step. 개선 26.04.21.7z
ㅇㅇ
04/21
31304
57
90일) CI1121.892322 7. Liberty Step. 개선 26.04.21.7z
복구
ㅇㅇ
04/21 31304 57
복구
[요청복구] 쇼타오네 RPG 1,2,3,4편
Yuzu
04/21
21932
72
[요청복구] 쇼타오네 RPG 1,2,3,4편
복구
Yuzu
04/21 21932 72
정보
더럽혀지는 창은 최근기사
미식이네
04/21
10725
28
더럽혀지는 창은 최근기사
정보
미식이네
04/21 10725 28
복구
90일) CI1121.892322 6. 고스트 패스 2. 개선 26.04.21.7z
ㅇㅇ
04/21
16230
37
90일) CI1121.892322 6. 고스트 패스 2. 개선 26.04.21.7z
복구
ㅇㅇ
04/21 16230 37
영상
[후타] 아야카 & 닐루의 밤의 의식
브레머튼
04/21
18283
101
[후타] 아야카 & 닐루의 밤의 의식
영상
브레머튼
04/21 18283 101
복구
(요청복구) RJ01482095 안돼 동거 라이프
grgrgrgr
04/21
31114
66
(요청복구) RJ01482095 안돼 동거 라이프
복구
grgrgrgr
04/21 31114 66
미번
미번/버전업/번역요청 The stereotype that only girls play healers isn’t true at all!!!
qwe123zxc
04/21
11521
38
미번/버전업/번역요청 The stereotype that only girls play healers isn’t true at all!!!
미번
qwe123zxc
04/21 11521 38
소리
[구매보급]거리감이 버그난 의붓여동생이 평생 이챠러브해 온다
이름뭐하지
04/21
11319
83
[구매보급]거리감이 버그난 의붓여동생이 평생 이챠러브해 온다
소리
이름뭐하지
04/21 11319 83
야짤
그만둬..! 난 네 돌잔치에도 갔었어. 이건 윤리적으로...
177523
04/21
32688
63
그만둬..! 난 네 돌잔치에도 갔었어. 이건 윤리적으로...
야짤
177523
04/21 32688 63
미번
[미번/번역요청] RJ01167674 친구의 큰 가슴의 엄마는 전부 다 내 꺼 입니다.
jinmori
04/21
9240
23
[미번/번역요청] RJ01167674 친구의 큰 가슴의 엄마는 전부 다 내 꺼 입니다.
미번
jinmori
04/21 9240 23
영상
다람쥐 소녀와 제프
브레머튼
04/21
19141
52
다람쥐 소녀와 제프
영상
브레머튼
04/21 19141 52
미번
[구매보급][번역요청] RJ345152 온천 여관의 파이즈리 괴이
순애전문가
04/21
9147
24
[구매보급][번역요청] RJ345152 온천 여관의 파이즈리 괴이
미번
순애전문가
04/21 9147 24
작업현황
[완료] 구 식당 멸망 방주 정리 도와주실 분 구함
ㅇㅇ
04/21
7833
23
[완료] 구 식당 멸망 방주 정리 도와주실 분 구함
작업현황
ㅇㅇ
04/21 7833 23
영상
[복구] 복구 영상 3개
브레머튼
04/21
33573
105
[복구] 복구 영상 3개
영상
브레머튼
04/21 33573 105
야짤
AI) 셀레스포니아 변태 인터넷아이돌
miso5
04/21
12003
121
AI) 셀레스포니아 변태 인터넷아이돌
야짤
miso5
04/21 12003 121
번역
버전업) RJ01604009 너스콜 경비원: Append.1 간호사 증원 패치
딸ㄱ기맛
04/21
33166
137
버전업) RJ01604009 너스콜 경비원: Append.1 간호사 증원 패치
번역
딸ㄱ기맛
04/21 33166 137
s/somisoft
• 143,985 subscribers여러가지 다루는 서브
Created 05/17/2025, 14:58:43
Deleted comment.
Deleted comment.
Deleted comment.