function loadResource(type, attributes, callback) { var element; if (type === 'script') { element = document.createElement('script'); element.src = attributes.src; element.onload = callback; } else if (type === 'link') { element = document.createElement('link'); element.rel = attributes.rel; element.href = attributes.href; } else if (type === 'style') { element = document.createElement('style'); element.rel = 'stylesheet'; element.appendChild(document.createTextNode(attributes.css)); } document.head.appendChild(element); } function createBSZ() { var postBody = document.getElementById('postBody'); if (postBody){ postBody.insertAdjacentHTML('afterend','
'); } var runday = document.getElementById('runday'); runday.insertAdjacentHTML('afterend', ''); } document.addEventListener("DOMContentLoaded", function() { createBSZ(); loadResource('script', { src: '//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js' }); console.log("\n %c GmeekBSZ Plugins https://github.com/Meekdai/Gmeek \n","padding:5px 0;background:#bc4c00;color:#fff"); });