The Chat Gem Lives!

General Discussion
1 2 3 5 Next
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.
w00t? clicking it gives free cookies? :D
Nice find :o

From the code u have there....i think it's a popup chat box? O.o
I've tried activating the perfect chat gem, no such luck yet
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);
I like mine purple (:
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
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.
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 :)
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 ^^
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
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
You guys are ninjas! Nice find :D
Good find, Relix.

Your rule of evil nears its end, blue demons!
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
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'
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
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.
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
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?

Join the Conversation

Return to Forum