在阅读我的网页我注意到 AdBlock 阻止了一个元素。我当然没有任何广告。以下是整个来源:
<!DOCTYPE html>
<html>
<head>
<title>Stack Overflow Comments</title>
<link rel="shortcut icon" href="/favicon.png" />
<meta name="description" content="Handy comments to use on Stack Overflow" />
<meta name="author" content="Ryan Klingler" />
<meta name="keywords" content="Stack,Overflow,Ryan,comments" />
</head>
<body style="line-height: 150%; background-color: #d3d3d3">
<h1>Handy Stack Overflow Comments</h1>
<strong>Bad code (sarcastic)</strong>
<input type="text" style="width:100%; font-family: monospace;" onfocus="this.select();" class="field left" value="You should look into [proper C formatting](//prohackr112.tk/pcf). Or learn how to [thoroughly obfuscate your code](//prohackr112.tk/guide/coding/proper-c-obfuscation)." readonly>
<strong>Bad code (helpful)</strong>
<input type="text" style="width:100%; font-family: monospace;" onfocus="this.select();" value="You should [properly format your code](//prohackr112.tk/pcf). Using proper formatting attracts people to your question and encourages them to help you." class="field left" readonly>
<br><strong>Missing MCVE (new user)</strong>
<input type="text" style="width:100%; font-family: monospace;" onfocus="this.select();" value="Welcome to Stack Overflow! Please see [How to create a Minimal, Complete, and Verifiable Example](/help/mcve)." class="field left" readonly>
<strong>Missing MCVE (not-so-new user)</strong>
<input type="text" style="width:100%; font-family: monospace;" onfocus="this.select();" class="field left" value="Please see [How to create a Minimal, Complete, and Verifiable Example](/help/mcve)." readonly>
<strong>Missing MCVE (no code provided)</strong>
<input type="text" style="width:100%; font-family: monospace;" onfocus="this.select();" class="field left" value="Please post your code. But first, see [How to create a Minimal, Complete, and Verifiable Example](/help/mcve)." readonly>
<strong>Complete "gimme teh codez" question<strong>
<input type="text" style="width:100%; font-family: monospace;" onfocus="this.select();" class="field left" value=""Gimme teh codez!!1" - "No."" readonly>
</body>
</html>
AdBlock 在做什么?
答案1
转至查看源代码:http://prohackr112.tk/r/stack-overflow-comments
在底部,你会看到
<!-- Hosting24 Analytics Code -->
<script type="text/javascript" src="http://stats.hosting24.com/count.php">
</script>
<!-- End Of Analytics Code -->
这就是被阻止的内容:http://stats.hosting24.com/count.php
要查看 Google Chrome 中阻止的内容,请按下F12并点击“广告拦截”
要查看 Firefox 中阻止的内容,请单击广告拦截图标,然后按“打开可拦截项目”