Created
September 20, 2021 00:43
-
-
Save kiwiyou/4386902bb35efddf946eadf9f4a6d174 to your computer and use it in GitHub Desktop.
Use unicode for rendering Yethangul in Naver Korean dictionary
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Naver YetHangul to Unicode | |
// @namespace Violentmonkey Scripts | |
// @match https://ko.dict.naver.com/ | |
// @grant none | |
// @version 1.0 | |
// @author kiwiyou <[email protected]> | |
// ==/UserScript== | |
new MutationObserver(e => { | |
if (e.length === 2 && e[0].target.id === 'content') { | |
document.querySelectorAll('.t_aw').forEach(yet => (yet.before(yet.alt), yet.remove())) | |
} | |
}).observe(document.body, { childList: true, subtree: true }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment