NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name OneForma Stopwatch // @namespace http://greasyfork.org/ // @version 1.0 // @description Stopwatch for OneForma tasks // @license MIT // @author Josh Petrey // @match https://desk.oneforma.com/* // @grant none // @updateURL https://openuserjs.org/meta/petreyjoshua1gmail.com/OneForma_Stopwatch.meta.js // @run-at document-idle // ==/UserScript== (function () { "use strict"; const page = document.querySelector('body > div.container > div.col-lg-12.d-flex.justify-content-center.mt-4.mb-4'); const stopwatch = document.createElement("div"); let seconds = 0; function incrementSeconds() { seconds += 1; stopwatch.textContent = seconds; } stopwatch.style.width = "200px"; stopwatch.style.backgroundColor = "white"; stopwatch.style.fontFamily = "Arial"; stopwatch.style.textAlign = "center"; stopwatch.style.fontSize = "xx-large"; page.append(stopwatch); window.setInterval(function () { incrementSeconds(); }, 1000); })();