Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<!-- アドセンス最初のタグ上 -->
<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
You can’t perform that action at this time.