pinkienort / showDateOnTitleOnKancolleWindow

// ==UserScript==
// @name         showDateOnTitleOnKancolleWindow
// @version      0.2
// @description  show date on html title area
// @author       pinkienort
// @match        http://www.dmm.com/netgame/social/-/gadgets/=/app_id=854854/ 
// @grant        none
// ==/UserScript==
/* jshint -W097 */
// 'use strict';

// Your code here...
// Format: DAY MM/DD HH:MM:SS
function showDateOnTitle(){
  var now = new Date();
  var day = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
  document.title = day[now.getDay()]
    + ' ' + ('0' + (1 + now.getMonth())).slice(-2)
    + '/' + ('0' + now.getDate()).slice(-2)
    + ' ' + ('0' + now.getHours()).slice(-2)
    + ':' + ('0' + now.getMinutes()).slice(-2)
    + ':' + ('0' + now.getSeconds()).slice(-2);
  var t = setTimeout(showDateOnTitle, 500);
}

showDateOnTitle();