Skip to content

Instantly share code, notes, and snippets.

@HelloWorld017
Last active September 3, 2017 08:24
Show Gist options
  • Save HelloWorld017/beb1952ce44a5daadcdc99e673ba935d to your computer and use it in GitHub Desktop.
Save HelloWorld017/beb1952ce44a5daadcdc99e673ba935d to your computer and use it in GitHub Desktop.
나무위키의 이미지 우클릭 시 빈 이미지가 다운로드 되는 것을 방지합니다.
// ==UserScript==
// @name Namuwiki Image RightClickable
// @namespace https://khinenw.tk/
// @version 1.1.rc-1
// @description Don't save blank image when right click namuwiki images
// @author Khinenw
// @match http://namu.wiki/*
// @match https://namu.wiki/*
// @grant none
// @license MIT License
// ==/UserScript==
(() => {
'use strict';
const $$ = document.querySelectorAll.bind(document);
[...$$('img.wiki-image')].forEach((v) => {
v.src = v.getAttribute('data-src');
});
})();
@HelloWorld017
Copy link
Author

나무위키 이미지 우클릭 활성화

나무위키에서 이미지를 우클릭할 시 빈 svg 파일이 받아지는 현상을 방지합니다.

사용법

Chrome: Tampermonkey or Violent monkey
Firefox: Greasemonkey or Tampermonkey
Safari: Tampermonkey
Microsoft Edge: Tampermonkey
Opera: Tampermonkey
Maxthon: Violentmonkey
Dolphin: Tampermonkey
UC: Tampermonkey
자신의 브라우저에 맞는 플러그인을 다운로드 합니다.

이후에 여기를 클릭해주세요.
설치하신 후에 나무위키에 들어가서 이미지 우클릭하고 다운로드 하였을 시 제대로 나타나는지 확인해보세요.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment