// ==UserScript== // @name goo dictionary. // @namespace http://www.zontheworld.com/ // @include http://* // @version 1.0.0 // ==/UserScript== (function(){ var url = 'http://dictionary.goo.ne.jp/'; var div = document.createElement('div'); div.id = 'goo_dictionary_div'; div.setAttribute('style','position:fixed;bottom:20px;right:5px;margin:0px;padding:0px;'); var a = document.createElement('a'); var img = document.createElement('img'); img.src = 'data:image/gif;base64,R0lGODlhEAAQAKIEAOKJicwzM90IBv///////wAAAAAAAAAAACH5BAEAAAQALAAAAAAQABAAQANBSLLcrSOGEKtdNoANaMVRx4mfYFmdFoHS6K1mqHEqfN4ljrPSpE22Sq1ziQ1SvhPPNwEUhc4KMSjzRVcKh3ZBSAAAOw=='; img.style.border = 'none;'; a.appendChild(img); a.href="javascript:GooDictionary();" div.appendChild(a); document.body.appendChild(div); EscapeEUCJP=function(str){ return str.replace(/[^*+.-9A-Z_a-z-]/g,function(s){ var c=s.charCodeAt(0); return (c<128?(c<16?"%0":"%")+c.toString(16):65376