Improvement in the clash of code

Suggestion: Before start any clash there could be some audible alert, so I will not have to wait for the standard timer over or clash owner start it.

5 Likes

Wait… I just assumed I was missing the audible alert for Clashes…

I man… there is an alert for notifications…

I think that you don’t understood. When the timer end, one alert should play. Case I am in another tab (browser), I may know immeditally that the clash will begin.

1 Like

I would also like to have ability to limit type of clashes that I would participate in.
For example I don’t really like races while I enjoy a lot shortest code competitions.

2 Likes

@omenregule: This is a good. But, it was already thus. In the beginning you could chose the type of clash. It was changed. :unamused:

1 Like

… wait… people stick around on a single tab watching a countdown?

… who are these people… ???

Here is a script that does the job for Greasemonkey or Tampermonkey.

// ==UserScript==
// @name        Clash alert
// @include     https://www.codingame.com/*
// @version     1
// @grant       none
// ==/UserScript==

var player = document.createElement('audio');
player.src = 'http://www.gravomaster.com/alarm/sounds/ding.mp3';
player.preload = 'auto';

$(document).on("DOMSubtreeModified", '.countdown', function(){
  var timer = $(this).find('.ng-binding').html();
  if (timer == "00:04")
    player.play();
});

I hope this will be useful :wink:

(updated to beep at 4 seconds so it catches clashes started manually)

4 Likes

Very nice, @royale ! Of course it will help. :grin: