NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name Facebook Minutes Spent
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.facebook.com/
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Your code here...
var i = 0;
var Secoonds;
var MinuteCount = 0;
var Minutees;
var parentNode = document.createElement('div');
parentNode.className = '_4kny _2s24';
var Node = document.createElement('div');
Node.className = '_4q39';
Node.appendChild(document.createElement('a'));
Node.firstChild.className = "_2s25";
Node.firstChild.innerText = '0 Minutes';
function Aleert() {alert(MinuteCount + Minutees + "\n" + (i%60) + Secoonds);}
Node.firstChild.href = "#";
Node.firstChild.addEventListener('click', Aleert);
parentNode.appendChild(Node);
document.getElementsByClassName('_1uh-')[0].appendChild(parentNode);
if(MinuteCount == 1){Minutees = ' Minute';}else{Minutees = ' Minutes';}
Node.firstChild.innerText = MinuteCount + Minutees;
window.setInterval(function() {MinuteCount++;
if(MinuteCount == 1){Minutees = ' Minute';}else{Minutees = ' Minutes';}
Node.firstChild.innerText = MinuteCount + Minutees;},60000);
window.setInterval(function() {i++;
if(i == 1){Secoonds = ' Second';}else{Secoonds = ' Seconds';}},1000);
})();