How does Facebook disable the browser's integrated Developer Tools?

后端 未结 12 1156
予麋鹿
予麋鹿 2020-11-22 06:12

So apparently because of the recent scams, the developer tools is exploited by people to post spam and even used to \"hack\" accounts. Facebook has blocked the developer too

12条回答
  •  南方客
    南方客 (楼主)
    2020-11-22 06:56

    My simple way, but it can help for further variations on this subject. List all methods and alter them to useless.

      Object.getOwnPropertyNames(console).filter(function(property) {
         return typeof console[property] == 'function';
      }).forEach(function (verb) {
         console[verb] =function(){return 'Sorry, for security reasons...';};
      });
    

提交回复
热议问题