公告
财富商城
积分规则
提问
发文
2020-03-12 06:53发布
成全新的幸福
Look:
!
Wow!
How can the webpage know I'm using firebug?
BTW I couldn't find out how to show the translucent add banner.
You can do:
if(window.console && window.console.firebug) { alert("Firebug active!"); }
This works not only from the Firebug console, but also from within the page:
if (document.getElementById('_firebugConsole')) alert("fire!");
Both answers will alert if the Firebug user has activated the Console panel. If users disable the Console panel, but leave the rest of Firebug up, the alerts will not fire (because Firebug does not inject the console object in that case).
最多设置5个标签!
You can do:
This works not only from the Firebug console, but also from within the page:
Both answers will alert if the Firebug user has activated the Console panel. If users disable the Console panel, but leave the rest of Firebug up, the alerts will not fire (because Firebug does not inject the console object in that case).