简体   繁体   中英

disable firebug extension through javascript or php

i want to disable firebug extension icon in popup window.can we hide or remove it in popup window through javascript or php? i searched here and found this code but its not working.

if (! ('console' in window) || !('firebug' in console)) {
  var names = ['log', 'debug', 'info', 'warn', 'error', 'assert', 'dir','dirxml', 'group','groupEnd', 'time', 'timeEnd', 'count', 'trace', 'profile', 'profileEnd'];
  window.console = {};
  for (var i = 0; i < names.length; ++i) {
      window.console[names[i]] = function() {};
  }
} 

Use modal dialog using div element for popups

https://jqueryui.com/dialog/

There is no other way to prevent firebug in popup window. Your code only overrides the console object.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM