javascript:if(location.href.indexOf("donmai.us")!=-1&&location.href.indexOf("/posts/")!=-1){if(typeof $q==="undefined"){function $q(e,t,n,r){try{var i=new XMLHttpRequest}catch(s){return 0}var r=r===undefined?1:r;var o=n?"POST":"GET";i.url=e;i.open(o,e,r);i.cb=t;var u;i.onreadystatechange=function(){if(i.readyState==4){t(i.responseText)}};if(n){i.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}i.send(n)}}if(typeof $c==="undefined"){function $c(e,t){if(e=="#text"){return document.createTextNode(t)}else{var n=document.createElement(e)}for(var r in t)if(r=="kids"){for(var i in t[r]){if(typeof t[r][i]=="object"){n.appendChild(t[r][i])}}}else if(r=="style"){if(typeof t[r]=="string"){n.style.cssText=t[r]}else{for(var i in t[r])n.style[i]=t[r][i]}}else if(r=="class"){n.className=t[r]}else if(r=="#text"){n.appendChild(document.createTextNode(t[r]))}else{n.setAttribute(r,t[r])}return n}}function copyNotes_cancel(){document.getElementById("copyNotes_all").disabled=true;document.getElementById("copyNotes_targetPost").innerHTML='No post selected
No post selected
';copyNotes_throttle=false;var e=document.getElementsByClassName("note-box");for(i=0;i"+"Height: "+e.image_height+"px
"+"Scale: "+copyNotes_postScaleX*100+"% / "+copyNotes_postScaleY*100+"%"+'

Click a note to copy it
Or click "copy all notes"';copyNotes_throttle=false}function copyNotes_setup(){var e=document.getElementsByClassName("note-box");for(i=0;i'+"#copyNotes { background-color:#C6C6C6;height: auto;width: 14.5em;position: fixed;left: 0.5em;top: 5em;border: 8px ridge #3B3EEE;padding:9px;}"+"#copyNotes p { margin-top:1em;margin-bottom:0em; }"+'

Copy Notes


'+'Copy to Post (ID or link):'+''+'

Current post dimensions:

'+''+'

Target post dimensions:

'+'No post selected
No post selected

Scale:
'+'

Don\'t rescale note dimensions and positions

'+'';document.body.appendChild(temp_copyNotes);(function(){var e=document.getElementById("image");if(e){document.getElementById("copyNotes_currentPost").innerHTML="Width: "+e.getAttribute("data-original-width")+"px
"+"Height: "+e.getAttribute("data-original-height")+"px
"}})();document.getElementById("copyNotes_to").addEventListener("keyup",copyNotes_checkLink,false);document.getElementById("copyNotes_to").addEventListener("blur",copyNotes_checkLink,false);document.getElementById("copyNotes_all").addEventListener("click",function(){copyNotes_copy("all")},false)}void(0);