2013-09-03 はてなブログで記事下のHTMLをJavaScriptを使って本文直下に表示させるハック やり方 はじめに はてなブログ無料版では記事の下に広告などがあって記事本文から記事下までが離れすぎていて、誰も記事下を見てくれないでしょう。 しかし、はてなブログではJavaScriptが自由に使えます。よってJavaScriptを使って記事下のHTMLを本文直下に移動させることができるのです。 更に今回は簡単のためにコード作成ツールをこの記事内に用意しました。 文章では僕が何を言っているのだかわかりづらいので画像で見てみましょう。 通常であればここに表示されるが、 JavaScriptを使えば記事の本文の直下に移動することができる。 移動後、表示が少し変わったのはHTMLを記事内に移動させたことにより記事本文に適用されているCSSが適用されたからです。 コード生成 今回はだれでも