PDA

View Full Version : console.log <- Vbulletin using this and it rustles me.


Medi0cr3
02-24-2015, 02:27 PM
When you load a page in vbulletin, it shows the console.log entries for expanding hiding/showing the forums displayed.

Is there anyway to stop making it show these console.log();

??????

Lynne
02-24-2015, 05:54 PM
I have no idea what you are talking about. Can see get a link to view the problem? Or an image?

Medi0cr3
02-25-2015, 03:12 PM
<a href="http://puu.sh/gceSG/ff7874031a.png" target="_blank">http://puu.sh/gceSG/ff7874031a.png</a>

Press F12 and look for the Console.

You will see the log entries.

I do a fair bit of Jquery coding as well on some custom pages and it is very annoying to scroll through these entries. They appear to be the minimized individual forums from forum.php page

Lynne
02-25-2015, 03:51 PM
Wait a sec... so you want to not see the console.log entries on the page? Then turn off the console, no? What exactly does the browser console have to do with vbulletin (besides that you are viewing the 'talking' to the page? I really don't understand what you are asking for here.

Dave
02-25-2015, 04:16 PM
He wants vBulletin to stop using the console.log function in the JavaScript files of vBulletin.
You'll have to edit the clientscript/vbulletin-core.js file and remove all the console.log calls.

Medi0cr3
02-25-2015, 04:40 PM
He wants vBulletin to stop using the console.log function in the JavaScript files of vBulletin.
You'll have to edit the clientscript/vbulletin-core.js file and remove all the console.log calls.

I saw that before I even posted, however, that is a @#($&* ton of code haha. I was just hoping there was a simple fix :erm:

Lynne
02-25-2015, 05:54 PM
He wants vBulletin to stop using the console.log function in the JavaScript files of vBulletin.
You'll have to edit the clientscript/vbulletin-core.js file and remove all the console.log calls.
Thanks. Sometimes even coffee doesn't help with my morning comprehension!

Medi0cr3
02-25-2015, 07:01 PM
Thanks. Sometimes even coffee doesn't help with my morning comprehension!

Lol the guys at my work don't even want to talk to me without my coffee present lol

TheLastSuperman
02-26-2015, 07:21 PM
Lol the guys at my work don't even want to talk to me without my coffee present lol

Shoot my wife doesn't want to deal with me until I've had a cup, you have it good my friend very good ;) :p.

nerbert
02-26-2015, 08:41 PM
Only console.log()? Or console.warn() and console.info() too?

I can do it with regular expression search and replace.

EDIT

One thing I'm not sure what to do with though:

vBulletin_Framework.prototype.console=function(){
if(window.console||console.firebug){
var args=new Array();
for(var i=0;i<arguments.length;i++){
args[args.length]=arguments[i]
}
try{
eval("console.log('"+args.join("','")+"');")
}
catch(e){
}
}
};