Keyboard shortcuts for Cube Timer

Adds keyboard shortcuts to clear the last time or all the times

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name        Keyboard shortcuts for Cube Timer
// @namespace   cubetimer
// @description Adds keyboard shortcuts to clear the last time or all the times
// @include     http://www.cubetimer.com/
// @author      SoKeT
// @version     1
// ==/UserScript==

$(document).keydown(function(e) {
  if (e.which === 46) { //Esc
    $("#elapsed_time").text("00:00.00");
    remove_time(time_list.length - 1);
  }
  else if (e.which === 27) { //Del
    clear_times();
  }
});