setTimeout(function() { var countId = 40114; var scripts = document.getElementsByTagName('script'); for (var i = 0 , len = scripts.length ; i < len ; i++) { var script = scripts[i]; var src = script.src; if (src.match(/count_id=([0-9]*)$/)) { var scriptCountId = RegExp.$1; if(countId == scriptCountId) { var iframe = document.createElement('iframe'); iframe.frameBorder = 0; iframe.style.border = "0"; iframe.scrolling = "no"; iframe.src = "https://counting.hatelabo.jp/count.gadget/40114"; iframe.width = "200"; iframe.height = "140"; iframe.className = "hatena-counting-gadget-40114"; var next = script.nextSibling; if (next && next.tagName == 'IFRAME' && next.className == "hatena-counting-gadget-40114") { // skip } else if (next) { next.parentNode.insertBefore(iframe, next); } else if (script.parentNode) { script.parentNode.appendChild(iframe); } } } } }, 100);