Diablo® III

The Chat Gem Lives!

Posts: 212
If you scroll down, you can see that little blue orb. Click it, and it will turn purple.

But is that all it does?

Through a bit of hackery, I found the following:

/**
* Gem callback.
*/
gem: null,

/**
* Initialize.
*/
initialize: function() {
/*if (Cookie.read('d3.chatGem'))
D3.chatGem(true);*/
},

/**
* Toggle the chat gem!
*
* @param activate
*/
activateGem: function(activate) {
$('#chat-gem').toggleClass('activated');

if (Core.isCallback(D3.gem))
D3.gem();

/*var gem = $('#chat-gem');

if (activate) {
gem.addClass('activated');
} else {
if (gem.hasClass('activated')) {
gem.removeClass('activated');
Cookie.erase('d3.chatGem');
} else {
gem.addClass('activated');
Cookie.create('d3.chatGem', 1, {
expires: 720,
path: '/'
});
}
}*/
}


As you see, it has commented out code. That code adds a browser cookie that the gem has been clicked.

I have manually added this cookie, and will explore to see if it does anything :)

- Edit -

Found the direct location of its source code:

http://eu.battle.net/d3/static/js/d3.js?v2

- Edit 2 -

initialize: function() {
/*if (Cookie.read('d3.chatGem'))
D3.chatGem(true);*/
},

The "D3.chatGem" function is "undefined", meaning the code has not been created yet.

So it seems all it does is change color, but will do more in the future - We can only wait!

- Edit 3 -

Replaced the picture with the actual code.
Edited by Reelix on 24/08/2011 14:57 BST
Reply Quote
Posts: 3
w00t? clicking it gives free cookies? :D
Reply Quote
Posts: 6,531
Nice find :o

From the code u have there....i think it's a popup chat box? O.o
Reply Quote
Posts: 7
I've tried activating the perfect chat gem, no such luck yet
Reply Quote
Posts: 212
24/08/2011 14:35Posted by Rebound
From the code u have there....i think it's a popup chat box? O.o


Yup.

javascript:alert(D3.activateGem);
Reply Quote
Posts: 1,197
I like mine purple (:
Reply Quote
Community
Posts: 462
24/08/2011 14:18Posted by Reelix
So it seems all it does is change color, but will do more in the future - We can only wait!
Wait for what! A gem that changes colour is cool in itself, don't you think? :P
Reply Quote
23 Goblin Shaman
0
Posts: 2,289
24/08/2011 14:33Posted by Flessuh
w00t? clicking it gives free cookies? :D


Sorry no. It's commented out.
It was probably meant to give free cookies tho, but someone got there ahead of us.
Reply Quote
Posts: 212
24/08/2011 14:41Posted by Wryxian
Wait for what! A gem that changes colour is cool in itself, don't you think? :P

Cool indeed! But the "Perfect Gem Activated" appearing from Diablo 2 suggests it potentially does more! The commented out code further suggests that additional functionality would be appearing :)
Reply Quote
Posts: 7
24/08/2011 14:41Posted by Wryxian
So it seems all it does is change color, but will do more in the future - We can only wait!
Wait for what! A gem that changes colour is cool in itself, don't you think? :P


More Sites need Chat gems. I think the chat gem is the core of the Diablo community and it is working as intended =D

Site is looking good, can't wait to complement it with a Diablo3 Portrait ^^
Reply Quote
Posts: 3
Tip: If you open your browser's JS Console (CTRL + SHIFT+ J in Chrome) and type:

Nickname.open()

You'll get a lovely prompt for creating a BETA nickname for the EDIT: forum. Obviously, this requires a beta license on your account :P
Edited by Shenlok on 24/08/2011 15:06 BST
Reply Quote
Posts: 212
24/08/2011 14:52Posted by Shenlok
Tip: If you open your browser's JS Console (CTRL + SHIFT+ J in Chrome) and type:

Aaah - Thanks for the tip! :D

Also....

http://eu.battle.net/d3/en/nickname/

A bit easier for those without chrome - Not as decent a display, but the basics :p

- Edit -

Screenshot: http://dl.dropbox.com/u/135815/d3BetaLoginScreen.png
Edited by Reelix on 24/08/2011 15:02 BST
Reply Quote
Posts: 28
You guys are ninjas! Nice find :D
Reply Quote
Posts: 1,807
Good find, Relix.

Your rule of evil nears its end, blue demons!
Reply Quote
Posts: 212
Shenlok: My JSON sucks - Mind checking to see what it posts? If it posts the account name, we can spoof to someone with the beta :p
Reply Quote
Posts: 6,531
24/08/2011 14:41Posted by Wryxian
So it seems all it does is change color, but will do more in the future - We can only wait!
Wait for what! A gem that changes colour is cool in itself, don't you think? :P


I C UAT U DID DAR'
Reply Quote
Posts: 3
All that is posted in the JSON is a nickname field i.e { nickname="HELLO" }

Presumably all the auth stuff is down to sessions/cookies, practically impossible to spoof! And i'd imagine such talk is against the rules on the forums anyhow :P
Reply Quote
Posts: 139
As a programmer, I can tell the only reason that code is there is to provide "memory" of whether the user clicked the gem before; if the user revisits the forum (or refreshes the page) the gem will still be activated.
Reply Quote
Posts: 212
24/08/2011 15:20Posted by Shenlok
And i'd imagine such talk is against the rules on the forums anyhow :P

Nope - Closest I could find was http://eu.battle.net/en/community/conduct#data-files which only deals with releasing unreleased in-game content. I am unable to find anything dealing with unreleased website content :)

Eg: https://eu.battle.net/account/local-common/images/game-boxes/en-us/d3-big.png
Edited by Reelix on 24/08/2011 15:27 BST
Reply Quote
85 Orc Shaman
3210
Posts: 163
Someone else realized that the screen-shot shows "open beta" and not closed or just beta?

Isnt that somewhat breaking news if you can take it seriously?
Reply Quote

Please report any Code of Conduct violations, including:

Threats of violence. We take these seriously and will alert the proper authorities.

Posts containing personal information about other players. This includes physical addresses, e-mail addresses, phone numbers, and inappropriate photos and/or videos.

Harassing or discriminatory language. This will not be tolerated.

Forums Code of Conduct

Report Post # written by

Reason
Explain (256 characters max)
Submit Cancel

Reported!

[Close]