スクリプトテスト用

<script>
var elmDiv = document.createElement('div');
 elmDiv.align = 'center';
 elmDiv.style.float = 'left';
 elmDiv.style.width = '350px';
 elmDiv.style.height = '330px';
var spsLink = document.createElement('div');
 spsLink.innerHTML = '<div class="sponsor-link">広告</div>';
elmDiv.appendChild(spsLink);

var adsScr = document.createElement('script');
 adsScr.async = true;
 adsScr.src = '//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js';

var adsIns = document.createElement('ins');
 adsIns.className = 'adsbygoogle';
 adsIns.style.display = 'inline-block';
 adsIns.style.width = '336px';
 adsIns.style.height = '280px';
/* ca-pub-XXX は置き換える */
 adsIns.dataset.adClient = 'ca-pub-8731185823202703';
 adsIns.dataset.adSlot= '4972487331';

var adsGgl = document.createElement('script');
/* []は半角に置き換える */
adsGgl.text = '(adsbygoogle = window.adsbygoogle || []).push({});';
elmDiv.appendChild(adsScr);
elmDiv.appendChild(adsIns);
elmDiv.appendChild(adsGgl);

var $target = $('.entry-content h3');
$target.eq(Math.floor($target.size() -1)).before($(elmDiv));
</script>