Skip to content

Instantly share code, notes, and snippets.

@kiwiyou
Created September 20, 2021 00:43
Show Gist options
  • Save kiwiyou/4386902bb35efddf946eadf9f4a6d174 to your computer and use it in GitHub Desktop.
Save kiwiyou/4386902bb35efddf946eadf9f4a6d174 to your computer and use it in GitHub Desktop.
Use unicode for rendering Yethangul in Naver Korean dictionary
// ==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