SanyaNya / Aranka counter

// ==UserScript==
// @name        Aranka counter
// @namespace   http://tampermonkey.net/
// @version     0.1
// @description Counting Aranka's fairly obtained money
// @author      Wolfii
// @match       https://www.okoun.cz/boards/neperspektivni_lasky
// @grant       none
// @license     MIT
// ==/UserScript==

(function () {
  'use strict';

  var arankaTime = Date.parse('27 Jul 2017');
  var nowTime = Date.now();
  var dailyPayment = 100;
  var resultDays = 0;
  var result = 0;

  resultDays = Math.round((nowTime - arankaTime) / 1000 / 60 / 60 / 24);
  result = resultDays * dailyPayment;

  var newDiv = document.createElement("div");
  var textNode = document.createTextNode("Při průměrném placení " + dailyPayment + " Kč denně věnoval pan JASAN k dnešku Arance " + result + " Kč.");
  newDiv.appendChild(textNode);
  newDiv.style.color = "purple";
  newDiv.style.textAlign = "center";

  var insertTarget = document.getElementsByClassName('welcome');
  insertTarget[0].insertBefore(newDiv, insertTarget[0].childNodes[0]);
})();