Block Firebug

จาก WikiBall

การปรับปรุง เมื่อ 07:29, 9 กรกฎาคม 2552 โดย Spnball (พูดคุย | เรื่องที่เขียน)
(ต่าง) ←รุ่นก่อนหน้า | รุ่นปัจจุบัน (ต่าง) | รุ่นถัดไป→ (ต่าง)
ข้ามไปที่: นำทาง, ค้นหา

How to

<script type="text/javascript">
if( window.console && window.console.firebug )
    document.getElementsByTagName('body')[0].innerHTML += 
           "<div onclick=\"this.style.display = 'none'\" "+
           "style='position:absolute; top:0; width:100%; padding: 5px 0; background: #ff7; border-bottom: 1px solid #770; font-weight: bold; text-align: center;'>"+
           "Firebug can make this web page slow, we suggest you disable it for this web page. Click to close this warning.</div>";
</script>

เพียงแค่เพิ่ม script ด้านบน ก็สามารถแจ้งเตือนผู้ใช้ได้แล้วว่าท่านกำลังเปิด firebug อยู่ ซึ่งอาจทำให้การดูเวปไซต์ของท่านนั้นช้าลง เหมือนตัวอย่างเช่น gmail นั่นเอง

Reference

รับข้อมูลจาก "http://wiki.memoball.info/index.php/Block_Firebug"
เครื่องมือส่วนตัว