Last active
November 22, 2017 08:31
-
-
Save pkordylewski/4cb4370fcfe512d4ca6ad022dce2b932 to your computer and use it in GitHub Desktop.
Userscript / Global Page Timer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Global Page Timer | |
// @include *pm.hq.imos.net* | |
// @include *redmine.imos.net* | |
// @version 0.1.0 | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js | |
// @require https://raw.github.com/odyniec/jQuery-tinyTimer/master/jquery.tinytimer.min.js | |
// @grant none | |
// ==/UserScript== | |
var usJQ = $.noConflict(true); | |
usJQ('body').append('<div style="position: sticky; z-index: 9999; float: right; bottom: 0; padding: 2px 5px; display: block; background-color: green; font-family: Verdana, sans-serif; font-size: 14px; font-weight: bold; color: white;">Time on Page: <span id="imos-page-timer"></span></div>'); | |
usJQ('#imos-page-timer').tinyTimer({ | |
from: Date.now(), | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment