File indexing completed on 2025-02-16 04:35:30
0001 <html> 0002 <head> 0003 <title>AdBlock Tests &A</title> 0004 <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> 0005 </head> 0006 <body> 0007 <h2>AdBlock Tests</h2> 0008 <h3>Popup Blocking</h3> 0009 <p> 0010 <a href="javascript:window.open('http://www.google.com/aclk?sa=l&adurl=http://www.edreams.com/', '_blank', 'width=600,height=600,statusbar=no,toolbar=no')">Open Popup window (will be blocked)</a> 0011 </p> 0012 0013 <h3>Element hiding</h3> 0014 Blocking element with <b>##div.test-qz-ad</b> rule. 0015 <div class="test-qz-ad" style="font-weight: bold; color: darkred;"> 0016 If you see this text, the rule does not works! 0017 </div> 0018 0019 <h3>Subdocument rules</h3> 0020 Blocking iframe with <b>||linux.org.ru^$subdocument</b> rule. 0021 <iframe src="http://www.linux.org.ru" width="100" height="100"></iframe> 0022 0023 <h3>XMLHttpRequest rules</h3> 0024 Blocking ajax with <b>adblock.html$xmlhttprequest</b> rule. 0025 <div id="ajax-status">Blocked</div> 0026 <script> 0027 $.get("adblock.html", function(data) { 0028 $("#ajax-status").html("Loaded!"); 0029 }); 0030 0031 if (location.protocol == "file:") { 0032 document.write("<h3 style='color:red'>Protocol file:// cannot be blocked!</h3>"); 0033 document.write("Please move this file to localhost"); 0034 } 0035 </script> 0036 0037 </body> 0038 </html>