Skip to content

Instantly share code, notes, and snippets.

@pastak
Created November 20, 2013 03:03
Show Gist options
  • Save pastak/7556986 to your computer and use it in GitHub Desktop.
Save pastak/7556986 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name display datetime on Github issue
// @namespace userjs.com.cosmio.pastak
// @description
// @include https://github.com/*/pull/*
// @include https://github.com/*/issues/*
// ==/UserScript==
$(function() {
var usdate = $('.discussion-topic-header time').attr('datetime');
var msec = msec = Date.parse(usdate);
var jdate = new Date(msec);
$('.discussion-topic-header time').append(" ( "+jdate.toLocaleString()+" )");
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment