코네 이미지 뷰어 개선 스크립트
코네 자체 이미지 뷰어에 전체화면이 없어서 간단하게 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
62871
22
AI 이미지 관련 공지 및 관련 규정 수정 공지
공지
1uF
05/02 62871 22
공지
‼️뉴비 필독 가이드‼️
1uF
05/02
93749
134
‼️뉴비 필독 가이드‼️
공지
1uF
05/02 93749 134
공지
🔔[필독] 채널 규정 & 신문고 (2026 04 05~)
SK
04/05
207471
-25
🔔[필독] 채널 규정 & 신문고 (2026 04 05~)
공지
SK
04/05 207471 -25
공지
🔔[필독] 탭 별 이용 가이드 (20260206~)
Etrick
02/05
255921
-41
🔔[필독] 탭 별 이용 가이드 (20260206~)
공지
Etrick
02/05 255921 -41
공지
[필독] 서브에 자주 올라오는 여러 가지 질문 모음 (20251026~)
SK
05/17/25
1244728
-14
[필독] 서브에 자주 올라오는 여러 가지 질문 모음 (20251026~)
공지
SK
05/17/25 1244728 -14
유틸
RPG MV 치트 플러그인 개조 버전 v2.1
4HHHH
07/19/25
21724
30
RPG MV 치트 플러그인 개조 버전 v2.1
유틸
4HHHH
07/19/25 21724 30
유틸
[노모이미지파일만] 카바씨네의 즐거운 투병 생활UC
미스터장
07/17/25
9045
23
[노모이미지파일만] 카바씨네의 즐거운 투병 생활UC
유틸
미스터장
07/17/25 9045 23
유틸
goodbyedpi
unkown453645
07/15/25
6116
23
goodbyedpi
유틸
unkown453645
07/15/25 6116 23
유틸
로케일 에뮬
unkown453645
07/15/25
4797
15
로케일 에뮬
유틸
unkown453645
07/15/25 4797 15
유틸
드래곤 콩키스타 스탠딩 일러스트 가슴 흔들림 모드 번역
미스터장
07/11/25
11431
49
드래곤 콩키스타 스탠딩 일러스트 가슴 흔들림 모드 번역
유틸
미스터장
07/11/25 11431 49
유틸
다키스트 세일 기념 NSFW 스킨/모드
삐뉴
07/11/25
8262
27
다키스트 세일 기념 NSFW 스킨/모드
유틸
삐뉴
07/11/25 8262 27
유틸
한여름의 절정 캐릭터 공유2
mola245
07/10/25
11299
30
한여름의 절정 캐릭터 공유2
유틸
mola245
07/10/25 11299 30
유틸
한여름의 절정 공홈에서 퍼온 캐릭터카드
ㅇㅇ
07/05/25
7860
15
한여름의 절정 공홈에서 퍼온 캐릭터카드
유틸
ㅇㅇ
07/05/25 7860 15
유틸
[2026-01-11] 히토미 다운로더 코네용
kts
07/03/25
22523
66
[2026-01-11] 히토미 다운로더 코네용
유틸
kts
07/03/25 22523 66
유틸
Sexbound(스타바운드)통팩 V0.2 ,Lustiest Lair 1.6 메가-커스텀 팩(2025.09.30까지)
파에톤1호팬
07/02/25
15202
24
Sexbound(스타바운드)통팩 V0.2 ,Lustiest Lair 1.6 메가-커스텀 팩(2025.09.30까지)
유틸
파에톤1호팬
07/02/25 15202 24
유틸
[업뎃] base64 자동 복호화 1.4.15
arcjay
07/01/25
18690
35
[업뎃] base64 자동 복호화 1.4.15
유틸
arcjay
07/01/25 18690 35
유틸
[복구]+@ 시니시스타 2 모드 모음(1.07)
sims9876
06/29/25
38306
39
[복구]+@ 시니시스타 2 모드 모음(1.07)
유틸
sims9876
06/29/25 38306 39
유틸
[업뎃] base64 자동복호화
arcjay
06/15/25
16420
29
[업뎃] base64 자동복호화
유틸
arcjay
06/15/25 16420 29
유틸
[유틸] [노모] 비밀 노출 -배덕의 달콤함에 물든 마나카- 노모패치 v1.0.0.6
Ghost
06/15/25
14200
15
[유틸] [노모] 비밀 노출 -배덕의 달콤함에 물든 마나카- 노모패치 v1.0.0.6
유틸
Ghost
06/15/25 14200 15
유틸
업뎃) 스텔라블레이드 릴리 누드모드
konekat
06/14/25
18512
65
업뎃) 스텔라블레이드 릴리 누드모드
유틸
konekat
06/14/25 18512 65
유틸
[업뎃알림] 오토소미
김머시기
06/12/25
10964
34
[업뎃알림] 오토소미
유틸
김머시기
06/12/25 10964 34
유틸
야식메뉴판 업뎃해옴 - 2.0.0
qqoro
06/12/25
13804
70
야식메뉴판 업뎃해옴 - 2.0.0
유틸
qqoro
06/12/25 13804 70
유틸
RPGMVP 파일을 포토샵으로 열고 수정하고 저장하장!!!!!!!!!!!!!!!!
moomin
06/12/25
4928
17
RPGMVP 파일을 포토샵으로 열고 수정하고 저장하장!!!!!!!!!!!!!!!!
유틸
moomin
06/12/25 4928 17
유틸
코네 유저 메모 및 차단 스크립트
글쓴이
06/11/25
6477
17
코네 유저 메모 및 차단 스크립트
유틸
글쓴이
06/11/25 6477 17
유틸
[노모패치] 졸린 유대감 ver.1.2.1
77777
06/10/25
10295
29
[노모패치] 졸린 유대감 ver.1.2.1
유틸
77777
06/10/25 10295 29
유틸
시니시스타 2 모드 모음
sims9876
06/09/25
12433
33
시니시스타 2 모드 모음
유틸
sims9876
06/09/25 12433 33
유틸
시니시스타2 알몸폭유모드
ㅇㅇ
06/08/25
13455
37
시니시스타2 알몸폭유모드
유틸
ㅇㅇ
06/08/25 13455 37
유틸
히토미 다운로더용 kone 이미지 일괄 다운로드 스크립트
글쓴이
06/08/25
7605
31
히토미 다운로더용 kone 이미지 일괄 다운로드 스크립트
유틸
글쓴이
06/08/25 7605 31
유틸
메스가키 새여동생♡낮져밤져 유혹섹활 AI노모
물크스
06/08/25
9993
77
메스가키 새여동생♡낮져밤져 유혹섹활 AI노모
유틸
물크스
06/08/25 9993 77
유틸
(긴급!)유니티 제미니 AI 자동번역 딜레이 대폭수정및 검열회피(반드시 새로 받아야함)
알탕
06/05/25
15329
33
(긴급!)유니티 제미니 AI 자동번역 딜레이 대폭수정및 검열회피(반드시 새로 받아야함)
유틸
알탕
06/05/25 15329 33
유틸
유니티 (AutoTranslator) 제미니 AI번역기 무료 API 다중추가 삽입및 번역 재시도 기능 추가
알탕
06/04/25
9346
23
유니티 (AutoTranslator) 제미니 AI번역기 무료 API 다중추가 삽입및 번역 재시도 기능 추가
유틸
알탕
06/04/25 9346 23
유틸
[업뎃] Auto Somi 자동 국룰입력/복호화/다운로드/미리보기 등
김머시기
06/04/25
15060
53
[업뎃] Auto Somi 자동 국룰입력/복호화/다운로드/미리보기 등
유틸
김머시기
06/04/25 15060 53
유틸
(수정) 유니티 자동번역기(autotranslator) 제미니 ai (Gemini) 번역하기 풀세트
알탕
06/02/25
38556
87
(수정) 유니티 자동번역기(autotranslator) 제미니 ai (Gemini) 번역하기 풀세트
유틸
알탕
06/02/25 38556 87
유틸
[업뎃] Auto 소미 XSS보안 업데이트
김머시기
05/27/25
11360
52
[업뎃] Auto 소미 XSS보안 업데이트
유틸
김머시기
05/27/25 11360 52
유틸
코네 미리보기 / 갤러리 뷰
mowajelly
05/25/25
8589
23
코네 미리보기 / 갤러리 뷰
유틸
mowajelly
05/25/25 8589 23
s/somisoft
• 143,985 subscribers여러가지 다루는 서브
Created 05/17/2025, 14:58:43
Deleted comment.
Deleted comment.
Deleted comment.