Last active
August 14, 2019 19:10
-
-
Save j3tm0t0/6119733 to your computer and use it in GitHub Desktop.
Show Localtime in CloudWatch Management Console
This file contains hidden or 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 ShowLocaltimeInCWMC | |
// @namespace j3tm0t0.gmail.com | |
// @description Show Localtime in CloudWatch Management Console | |
// @include https://console.aws.amazon.com/cloudwatch/home* | |
// @version 1.1 | |
// ==/UserScript== | |
$(document).ready(function(){ | |
var f=function() | |
{ | |
window.setTimeout(f,1000); | |
datetimeUTC=document.querySelector("tr.data_point_time td.data_point_value span").innerHTML; | |
if(datetimeUTC != "") | |
{ | |
ele.innerHTML=new Date(datetimeUTC+" UTC"); | |
} | |
} | |
var ele = document.createElement("span"); | |
var br = document.createElement("br"); | |
document.querySelector("tr.data_point_time td.data_point_value").appendChild(br); | |
document.querySelector("tr.data_point_time td.data_point_value").appendChild(ele); | |
f(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sample: https://twitter.com/j3tm0t0/status/362458448186712064/photo/1