코네 이미지 뷰어 개선 스크립트
코네 자체 이미지 뷰어에 전체화면이 없어서 간단하게 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
92512
134
‼️뉴비 필독 가이드‼️
공지
1uF
05/02 92512 134
공지
🔔[필독] 채널 규정 & 신문고 (2026 04 05~)
SK
04/05
206456
-25
🔔[필독] 채널 규정 & 신문고 (2026 04 05~)
공지
SK
04/05 206456 -25
공지
🔔[필독] 탭 별 이용 가이드 (20260206~)
Etrick
02/05
254875
-41
🔔[필독] 탭 별 이용 가이드 (20260206~)
공지
Etrick
02/05 254875 -41
공지
[필독] 서브에 자주 올라오는 여러 가지 질문 모음 (20251026~)
SK
05/17/25
1244457
-14
[필독] 서브에 자주 올라오는 여러 가지 질문 모음 (20251026~)
공지
SK
05/17/25 1244457 -14
유틸
[일부 노모패치] 서큐버스 & 매직 (청아,언버스짤 있음)
OTGie
11/02/25
5573
26
[일부 노모패치] 서큐버스 & 매직 (청아,언버스짤 있음)
유틸
OTGie
11/02/25 5573 26
유틸
[노모패치]신인마왕과 100명의 연인들
아르
11/02/25
10644
35
[노모패치]신인마왕과 100명의 연인들
유틸
아르
11/02/25 10644 35
유틸
Anaertailin 작가의 Slay the Spire 모음집
삐뉴
11/01/25
26361
42
Anaertailin 작가의 Slay the Spire 모음집
유틸
삐뉴
11/01/25 26361 42
유틸
[노모 + 텍스쳐 패치] 여신 메르의 만지작 동거 성활 v1.0
털털털털털털털털
11/01/25
11394
67
[노모 + 텍스쳐 패치] 여신 메르의 만지작 동거 성활 v1.0
유틸
털털털털털털털털
11/01/25 11394 67
유틸
무료 BGM 모음집 2025.11.01.
날개 로봇
11/01/25
4839
15
무료 BGM 모음집 2025.11.01.
유틸
날개 로봇
11/01/25 4839 15
유틸
다시 돌아온 다키스트 던전 NSFW 완전판 [Npc 리텍 / 영웅 리텍 / 이쁜이쁜 영웅 모드 / 몬스터 리텍] + 새 모드!
삐뉴
10/30/25
21709
122
다시 돌아온 다키스트 던전 NSFW 완전판 [Npc 리텍 / 영웅 리텍 / 이쁜이쁜 영웅 모드 / 몬스터 리텍] + 새 모드!
유틸
삐뉴
10/30/25 21709 122
유틸
[노모패치] PRIMITIVE HEARTS (DMM판O, 스팀판X)
마나난
10/29/25
2310
7
[노모패치] PRIMITIVE HEARTS (DMM판O, 스팀판X)
유틸
마나난
10/29/25 2310 7
유틸
슬레이 더 스파이어 (Slay The Spire) R18 패치 모드
cirial
10/28/25
27087
43
슬레이 더 스파이어 (Slay The Spire) R18 패치 모드
유틸
cirial
10/28/25 27087 43
유틸
미끼 치한 수사관 리나 모드
happy123
10/27/25
10044
17
미끼 치한 수사관 리나 모드
유틸
happy123
10/27/25 10044 17
유틸
렌파이 갤러리 강제 오픈 스크립트
난민1호
10/27/25
2761
9
렌파이 갤러리 강제 오픈 스크립트
유틸
난민1호
10/27/25 2761 9
유틸
일라이자의 비약 노모(Decensor) 패치
이브라브
10/26/25
4568
25
일라이자의 비약 노모(Decensor) 패치
유틸
이브라브
10/26/25 4568 25
유틸
압축파일 썸네일 확장
h-aszzcb
10/24/25
1773
9
압축파일 썸네일 확장
유틸
h-aszzcb
10/24/25 1773 9
유틸
코네 추천순 정렬 스크립트 업데이트
ducktail
10/24/25
12769
38
코네 추천순 정렬 스크립트 업데이트
유틸
ducktail
10/24/25 12769 38
유틸
추출된 *.txt 파일 번역툴 ( 파워셀 코드)
lovesccubus
10/23/25
1965
5
추출된 *.txt 파일 번역툴 ( 파워셀 코드)
유틸
lovesccubus
10/23/25 1965 5
유틸
코네 추천 컷 & 추천순 정렬 스크립트
ducktail
10/20/25
10500
59
코네 추천 컷 & 추천순 정렬 스크립트
유틸
ducktail
10/20/25 10500 59
유틸
[폰트파일] 네노토리 2.0에 들어있던 MsNanumGothicWK 폰트파일
katress
10/19/25
3040
6
[폰트파일] 네노토리 2.0에 들어있던 MsNanumGothicWK 폰트파일
유틸
katress
10/19/25 3040 6
유틸
MV/MZ 실시간 번역기 0.3 업데이트
moveit
10/18/25
6267
47
MV/MZ 실시간 번역기 0.3 업데이트
유틸
moveit
10/18/25 6267 47
유틸
동인 런처 db활용 딸각 방주 이름 정리기 GUI판
asdf1243
10/16/25
3141
11
동인 런처 db활용 딸각 방주 이름 정리기 GUI판
유틸
asdf1243
10/16/25 3141 11
유틸
[노모이미지만][청아] 호문쿨루스와의 성생활 노모패치
Ghost
10/16/25
8735
64
[노모이미지만][청아] 호문쿨루스와의 성생활 노모패치
유틸
Ghost
10/16/25 8735 64
유틸
RPG Maker MV, nwjs 프로필 오류 프레임 드랍 해결방법
rinsor
10/15/25
3334
14
RPG Maker MV, nwjs 프로필 오류 프레임 드랍 해결방법
유틸
rinsor
10/15/25 3334 14
유틸
동인런처 db 백업 기능을 활용한 방주이름 딸깍 정리기
asdf1243
10/14/25
2304
3
동인런처 db 백업 기능을 활용한 방주이름 딸깍 정리기
유틸
asdf1243
10/14/25 2304 3
유틸
기번 누락 대사 검수 보조 툴 (Tsukuru Extractor 보조 툴)
bermuda
10/14/25
2107
11
기번 누락 대사 검수 보조 툴 (Tsukuru Extractor 보조 툴)
유틸
bermuda
10/14/25 2107 11
유틸
오토소미 autosomi업뎃함
김머시기
10/13/25
8623
61
오토소미 autosomi업뎃함
유틸
김머시기
10/13/25 8623 61
유틸
방주정리기 (파일명정리 프로그램) v1.16 (26.04.04)
알비노
10/12/25
14014
54
방주정리기 (파일명정리 프로그램) v1.16 (26.04.04)
유틸
알비노
10/12/25 14014 54
유틸
RPG Maker MV/MZ 실시간 번역기 (DeepL) - 셀레스포니아 3in1 외 기타등등 가능
moveit
10/11/25
11921
36
RPG Maker MV/MZ 실시간 번역기 (DeepL) - 셀레스포니아 3in1 외 기타등등 가능
유틸
moveit
10/11/25 11921 36
유틸
쯔꾸르[MV]MOG플러그인[MZ]SOR배틀링 파일 교환용 플러그인-1.3
brothers
10/11/25
1281
5
쯔꾸르[MV]MOG플러그인[MZ]SOR배틀링 파일 교환용 플러그인-1.3
유틸
brothers
10/11/25 1281 5
유틸
감옥용사 조이플 오류 패치파일
감비아
10/11/25
5523
6
감옥용사 조이플 오류 패치파일
유틸
감비아
10/11/25 5523 6
유틸
자작 암호화된 링크 새탭으로 띄워주는 크롬 확장프로그램 공유
cx7175
10/11/25
1929
13
자작 암호화된 링크 새탭으로 띄워주는 크롬 확장프로그램 공유
유틸
cx7175
10/11/25 1929 13
유틸
자작 히토미 다운로더 헬퍼 크롬 확장프로그램 공유
cx7175
10/10/25
4513
4
자작 히토미 다운로더 헬퍼 크롬 확장프로그램 공유
유틸
cx7175
10/10/25 4513 4
유틸
도나도나 미검열 CG 오류 수정 최종완성본final최종2
riel64
10/06/25
14810
77
도나도나 미검열 CG 오류 수정 최종완성본final최종2
유틸
riel64
10/06/25 14810 77
s/somisoft
• 143,985 subscribers여러가지 다루는 서브
Created 05/17/2025, 14:58:43
Deleted comment.
Deleted comment.
Deleted comment.