Created
June 8, 2017 04:00
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- アドセンス最初のタグ上 --> | |
<script> | |
var adsenseCode = (function () {/* | |
<p style="text-align: center;"><span style="font-size: 80%;">スポンサーリンク</span><br /> | |
<div class="adbox"> | |
<div class="adsense-left"> | |
<!-- ここに変更後のアドセンスコードを挿入 --> | |
</div> | |
<div class="adsense-right"> | |
<!-- ここに変更後のアドセンスコードを挿入 --> | |
</div> | |
</div></p> | |
<p> </p> | |
*/}).toString().match(/\/\*([^]*)\*\//)[1].replace(/scrip>/g, 'script>'); | |
addEventListener("DOMContentLoaded", function() { | |
var $target = $('.entry-content h2,h3,h4,h5'); | |
$target.eq(0).before($('.insentense-adsense')); | |
$('.insentense-adsense').html(adsenseCode); | |
}, false); | |
</script> | |
<div class="insentense-adsense"></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment