다모앙
게시글 원본 이미지 확인 기능 복원하기
커널패닉

Lv.1 커널패닉 (119.♡.59.225)

2026년 2월 22일 PM 05:46

조회 1,051 공감 0

게시글 내 이미지 클릭시 원본 이미지를 표시해 주는 기능을 복원하는 스크립트입니다.

[code=javascript]// ==UserScript==

// @name 다모앙 게시글 이미지 뷰어 활성화

// @namespace http://tampermonkey.net/

// @version 1.0

// @description 특정 클래스 내의 이미지를 클릭하면 새 탭에서 원본 이미지를 엽니다.

// @author 커널패닉

// @match *://damoang.net/*

// @grant none

// ==/UserScript==


(function() {

'use strict';


document.addEventListener('click', function(e) {

const img = e.target.closest('.se-component.se-image-container img');


if (img && img.src) {

e.preventDefault();

e.stopPropagation();


window.open(img.src, '_blank');

}

}, true);


const style = document.createElement('style');

style.innerHTML = '.se-component.se-image-container img { cursor: pointer !important; }';

document.head.appendChild(style);

})();[/code]

Tampermonkey 또는 Violetmonkey에 추가하시면 애드온 설치/업데이트가 완료됩니다~​​

댓글 (0)

  • 아직 댓글이 없습니다. 첫 댓글을 작성해보세요!

댓글을 작성하려면 이 필요합니다.