Alexander Goodkind

Detect Adblock on your Tumblelog (Tumblr)

15 August 2014

by Alexander Goodkind

1.) goto tumblr.com/customize/ & press “edit html”

2.) (copy &) paste the following right before </head> (CMD+F or CTRL+F to find </head>)

<script>var adsnotblocked=false</script>
<script type="text/javascript" src="http://static.tumblr.com/4ra4qv5/hZmnadqev/advertisement.js"></script>

3.) (copy &) paste the following right before </body> (CMD+F or CTRL+F to find </head>)

<div style="position:fixed;bottom:10px;left:10px;font-family:arial,verdana;font-size:16px;line-height:16px;width:150px;text-align:left;">
    <script>if (adsnotblocked!=true){
        document.write("I see you are blocking ads please unblock them to make me happy &lt;3");}
    </script>
</div>

4.) Now when someone blocks your ads you should see a box in the left hand bottom corner saying: ‘I see you are blocking ads please unblock them to make me happy <3’