I tried doing the following:
$(\'.not-following\').each(function(i, obj) {
console.log(\'test\');
});
for some reason it keeps on pr
It isn't printing the object instead, what you are seeing is the jQuery (array of nodes) that the .each()
function returns.
The reason console.log()
is not working is that Twitter has replaced the method with an empty function, as console.log in production is considered bad practice.
If you need to access console.log
you can delete the 'overridden' version that the Twitter developers have written by invoking:
delete console.log
The will default console.log back to it's original function.
They overwritten console
> console.log.toString()
"function (){}"