Admin Forum:How can someone enable personal chat hacks on a wiki?

I'm the founder and admin of a wiki and I have no idea how to enable chat hacks for it. It's driving me nuts.

I read this blog: http://community.wikia.com/wiki/User_blog:PlasmaTime/Chat_hacks_-_how_to_enable_them

then I went here: http://community.wikia.com/wiki/User:WildloughRhulain/global.js

and I totally blanked. When there's a lot of code I have no idea WHAT I'm doing. I work in visual mode all of the time, the only "source code" I know is the "add link" button.

Can anyone help please? I don't want to do the wrong thing and mess it up.

Tiria Wildlough  Ee aye eeeh!! 12:10, September 17, 2012 (UTC)

Yep, that should be right. Now you just have to refresh your cache. Fang ³  12:28, September 17, 2012 (UTC)

How do I refresh the cache? I'd need a step by step walkthrough on doing it. Did I even add the right code? I pasted this:

importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); importScriptPage('User:Joeytje50/ChatPMs.js', 'c');

--Tiria Wildlough  Ee aye eeeh!! 13:11, September 17, 2012 (UTC)


 * As long as you copied the coding from that blog post, it should be fine. Fang ³  13:23, September 17, 2012 (UTC)

Same for me too... Added into both the global.js of community wikia and wikia.js on my wiki... Ctrl + F5 and Shift +F5 but nothing happened when I open up the chat... I tested the feature with : /clear.

Using Google Chrome NineteenthElement 13:37, September 17, 2012 (UTC)
 * Chat hacks aren't currently working due to the Media Wiki upgrade. Paper   Talk   My Work  14:03, September 17, 2012 (UTC)
 * Hi, to enable your chat hacks script, because of the upgrade, you now need to open up your web console, (Chrome: CTRL SHIFT J FF: CTRL SHIFT K) and add in your chat scripts and then press enter. -- Plasma  ( Talk ) 14:41, September 17, 2012 (UTC)

I opened the console and I see this:

oasis: DOM ready after 3257 ms chat_js2:232 HoverMenu: skipping #GlobalNavigation chat_js2:232 HoverMenu: skipping #AccountNavigation chat_js2:232 HoverMenu: skipping #WallNotifications chat_js2:232 CreatePage: init chat_js2:232 ImageLightbox: disabled chat_js2:232 [] chat_js2:233 JSMessages: loading Chat package(s) for "en" chat_js2:232 JSMessages: Chat package(s) loaded chat_js2:232 oasis: window onload after 3483 ms chat_js2:232 Chat server: http://chat2-2.wikia.com:80 chat_js2:232 Reconnected. chat_js2:233 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 SalemtheCruel: Object chat_js2:232 Emijane123: Object chat_js2:232 Niko Banks: Object chat_js2:232 WildloughRhulain: Object chat_js2:232 isInitialized: true chat_js2:232 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 child chat_js2:233 Attempting create private room with users SalemtheCruel,WildloughRhulain chat_js2:233 [] chat_js2:233 SalemtheCruel: Object chat_js2:232 UserView SCROLL DOWN!!! chat_js2:233 4714 chat_js2:233 Chat server: http://chat2-2.wikia.com:80 chat_js2:232 Reconnected. chat_js2:233 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 isInitialized: true chat_js2:232 message: {"id":null,"cid":"c35","attrs":{"msgType":"command","command":"openprivate","roomId":"4714","users":["SalemtheCruel","WildloughRhulain"]}} chat_js2:232 message: {"id":null,"cid":"c64","attrs":{"msgType":"chat","roomId":"4714","name":"WildloughRhulain","text":"*HUGS HARD*","avatarSrc":"","timeStamp":"","continued":false,"temp":false}} chat_js2:232 already connected chat_js2:233 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 message: {"id":null,"cid":"c35","attrs":{"msgType":"command","command":"openprivate","roomId":"4714","users":["SalemtheCruel","WildloughRhulain"]}} chat_js2:232 message: {"id":null,"cid":"c68","attrs":{"msgType":"chat","roomId":"4714","name":"WildloughRhulain","text":"I love you too sis! So much","avatarSrc":"","timeStamp":"","continued":false,"temp":false}} chat_js2:232 already connected chat_js2:233 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 already connected chat_js2:233 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 main chat_js2:233 already connected chat_js2:233 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 4714 chat_js2:233 message: {"id":null,"cid":"c35","attrs":{"msgType":"command","command":"openprivate","roomId":"4714","users":["SalemtheCruel","WildloughRhulain"]}} chat_js2:232 message: {"id":null,"cid":"c84","attrs":{"msgType":"chat","roomId":"4714","name":"WildloughRhulain","text":"YES!","avatarSrc":"","timeStamp":"","continued":false,"temp":false}} chat_js2:232 already connected chat_js2:233 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 main chat_js2:233 message: {"id":null,"cid":"c88","attrs":{"msgType":"chat","roomId":4520,"name":"WildloughRhulain","text":"I think I left something out and messed it up. I don't know where to fix it","avatarSrc":"","timeStamp":"","continued":false,"temp":false}} chat_js2:232 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 user rejoined clear partTimeOut chat_js2:233 Niko Banks: Object chat_js2:232 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 message: {"id":null,"cid":"c95","attrs":{"msgType":"chat","roomId":4520,"name":"WildloughRhulain","text":"*HUGS Niko*","avatarSrc":"","timeStamp":"","continued":false,"temp":false}} chat_js2:232 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 message: {"id":null,"cid":"c98","attrs":{"msgType":"chat","roomId":4520,"name":"WildloughRhulain","text":"wb matey","avatarSrc":"","timeStamp":"","continued":false,"temp":false}} chat_js2:232 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 4714 chat_js2:233 already connected chat_js2:233 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 message: {"id":null,"cid":"c35","attrs":{"msgType":"command","command":"openprivate","roomId":"4714","users":["SalemtheCruel","WildloughRhulain"]}} chat_js2:232 message: {"id":null,"cid":"c104","attrs":{"msgType":"chat","roomId":"4714","name":"WildloughRhulain","text":"YES!","avatarSrc":"","timeStamp":"","continued":false,"temp":false}} chat_js2:232 already connected chat_js2:233 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233 main chat_js2:233 already connected chat_js2:233 Processing any emoticons... chat_js2:233 Done processing emoticons. chat_js2:233

Where do I put the text? I DON'T know source code. --Tiria Wildlough  Ee aye eeeh!! 22:14, September 17, 2012 (UTC)


 * Plasma, y u confuzzle these people :P. everyone else, to the best of my knowledge, chat hacks are currently broken. If they somehow aren't because monch fixed them in the day or two I last saw the file, you have the right stuff I your global js tiria. Just completely clear your cache (look up how to do this online) and they should work. -- Kangaroopowah  ( Talk ) 01:31, September 18, 2012 (UTC)

Chat hacks do not load any more unless you have a secondary way of loading it such as  into your browser's Javascript console (CTRL-K on Firefox and CTRL-J on Chrome). --Callofduty4 (talk) 07:35, September 18, 2012 (UTC)

Where do I find the console?--Tiria Wildlough  Ee aye eeeh!! 11:08, September 18, 2012 (UTC)


 * Depending on what Internet Browser you use, there should be a JavaScript console in your developer tools. To get to the console, all you usually have to do (it varies from browser to browser) is right-click somewhere on a webpage and choose "Inspect element". That will bring up your developer tools. Then, somewhere in there, you should see a tab that says Console. You can copy/paste JavaScript into that console and run it from there. If you don't see Console anywhere, you may need to download an add-on or something similar. Again, depends on your browser.
 * -- 11:40, September 18, 2012 (UTC)

Thanks, Whistle9! I found the console! I just don't know how much of the text I have to paste in. I don't want to paste the wrong thing and mess it up. I'm using Google Chrome.

Would

importScriptPage('User:Monchoman45/ChatHacks.js', 'c');

do it? --Tiria Wildlough  Ee aye eeeh!! 15:07, October 22, 2012 (UTC)