nkcho14 / GetNaverIDFromNaverMemo

// ==UserScript==
// @name        GetNaverIDFromNaverMemo
// @author      line4metro
// @match       https://note.naver.com/*
// @require     https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js
// @require     https://gist.github.com/raw/2625891/waitForKeyElements.js
// @copyright   nkcho11
// @license MIT
// ==/UserScript==

showHiddenID ();
function showHiddenID () {

    var element = document.getElementById("kcpv"); // kcpv div 선택
    var a = element.innerHTML;                     // div 요소 읽기
    var pos1 = a.indexOf('targetUserId');          // targetUserId 위치추출
    var rtn = a.slice(pos1);                       // 문자열 자르기
    var rtn1 = rtn.split('&');  //&로 자르기
    var rtn2 = rtn1[0].split('='); // =로 자르기
    alert("ID : "+rtn2[1]+"입니다");
}