Skip to content

Instantly share code, notes, and snippets.

@binux
Last active December 11, 2015 22:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save binux/4671189 to your computer and use it in GitHub Desktop.
Save binux/4671189 to your computer and use it in GitHub Desktop.
function message(msg) {
$('#plexts').append('<div class="plext"><div class="pl_timestamp">'+(new Date()).getHours()+':'+(new Date()).getMinutes()+'</div><div class="pl_content pl_player"><span class="ALIENS">System: </span>'+msg+'</div></div>');
$('#plext_container').scrollTop($('#plext_container')[0].scrollHeight);
}
google.maps.event.addListener(Z.c().h, 'rightclick', function(event) {
message('@'+event.latLng.Ya+', '+event.latLng.Za);
});
U.prototype._show = U.prototype.show;
U.prototype.show = function(a) {
console.log(this, a);
message(this.d.a+' @'+this.d.Hb+', '+this.d.Ib);
$.get('http://localhost:8888/paste', {content: this.d.a});
this._show(a);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment