UPDATED: The reason the console won't log is the site runs this script:
// Production mode
// Disable console.log
console.log = function() {};
I'm guessing there isn't a way to get the function back on the site?
Prior issue:
I'm running a script in my Chrome console that follows everyone on a site. There are 200 people on the page, and I want to iterate through all the follow buttons and click them all by running this script in the console:
javascript:var inputs = document.getElementsByClassName('btn-follow');
for(var i=0; i<inputs.length; i++) {
inputs[i].click();
}
console.log("The btn-follow script has finished");
The script clicks the buttons fine but the log statement returns undefined
.
Is there a way to log to the console from within the console?
When I try console.log directly it looks like this:
Here is what gets outputted when I type "console":