Page MenuHomec4science

servicenow-inc-autostart-timer.user.js
No OneTemporary

File Metadata

Created
Tue, Apr 30, 13:54

servicenow-inc-autostart-timer.user.js

// ==UserScript==
// @name ServiceNow - Automatically start the incident timer
// @namespace support.epfl.ch
// @description Start the time counter automatically when an incident is loaded
// @match https://support.epfl.ch/*
// @match https://support-test.epfl.ch/*
// @match https://epfltest.service-now.com/*
// @match https://epfldev.service-now.com/*
// @version 0.2
// @grant none
// ==/UserScript==
// Log
// * 2018.03.23 L.Indermühle: URL has changed from it.epfl.ch to support.epfl.ch
// * 2018.02.20 L.Indermühle: Timer no longer mandatory and started by default, is this script still useful?
// * Apparently there are various different start buttons, I'm now using the
// image to find the button
// -- 2015-09-11 Florian Vessaz
// * Initial version
// -- 2015-09-11 Florian Vessaz
(function() {
'use strict';
function main() {
// var button = document.getElementById("link.incident.time_worked").parentElement;
// if (button != null) {
// button.click();
// }
// Bon, rien ne marche, 28 aout 2017... je laisse comme ça, plus le temps :(
console.log('tesssssssssssssssst ......................... !!!!!!!!!!!!!!!!!!!!!!');
}
setInterval(main, 1000);
})();

Event Timeline