3

On facebook if you try to use the Console via Dev-tools it blocks you from entering anything.

This was well laid out here: How does Facebook disable the browser's integrated Developer Tools?

Everywhere says this is not really a security feature for facebook but for their users. So that a general user doesn't get tricked and paste in malicious code given to them by "hackers" to gain access to their account.

I manage groups on facebook. And i want to execute javascript every once and a while to remove specific things or organize lists in specific ways... But i can not do this on facebook...

What is the solution? How do I execute commands in the console and disable their script blocking the use of the console? (I am not great with JavaScript but still would like to execute my basic commands)

Thanks for any help

  • Use Tampermonkey or similar extension that runs userscripts instead. An alternative is to strip the anti-devtools hack in a MitM proxy like Fiddler. – wOxxOm Apr 12 '18 at 03:34
  • @wOxxOm thanks! i am trying that now but no matter what i do i cant get a script to work on facebook using tampermonkey. I went and downloaded some other scripts for tampermonkey that were meant for facebook and those arent working either? Im not sure what im doing wrong... –  Apr 12 '18 at 14:04
  • You can add `debugger;` statement, open devtools, reload the page, and debug the scripts. – wOxxOm Apr 12 '18 at 14:07
  • Oh i didnt realize i still got error messages in the console. Nice! Maybe it is working.. I just cant get it to work on facebook for some reason... Works fine in jsfiddle... :( Trying to filter out all friends from member lists in facebook groups https://jsfiddle.net/et3hn3fk/ –  Apr 12 '18 at 14:22

0 Answers0