NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Oracle Support - display full timestamps // @namespace https://jonathanhult.com // @description Display full timestamps instead of displaying x minutes/days/months ago // @version 1.0.0 // @license MIT; https://opensource.org/licenses/MIT // @icon https://bbcdn.githack.com/jhult/oracle-vector-images/raw/master/oracle_logo.svg // @require https://gistcdn.githack.com/BrockA/2625891/raw/waitForKeyElements.js // @include https://support.oracle.com/epmos/faces/SrDetail* // @include https://support.oracle.com/cloud/faces/serviceRequests* // @run-at document-end // @grant none // ==/UserScript== waitForKeyElements('.xpf', fixTimestamps); function fixTimestamps() { var DASH = " - "; var DAY = "day"; var AGO = "ago"; var items = $(".xpf").find("table tbody tr td span[title]"); items.each(function () { var title = $(this).attr("title"); var text = $(this).text(); if (title.includes(text) || title.includes(DAY) || title.includes(AGO)) { if (text.includes(DASH)) { $(this).text(DASH + title); $(this).css("margin-left", "5px"); } else { $(this).text(title); } } }); }