Pop-up actual time for TweetDeck

Pop-up actual time with hovering mouse over relative time for TweetDeck.

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name           Pop-up actual time for TweetDeck
// @version        0.2.2
// @namespace      http://twitter.com/inmoutan
// @auther         inmoutan
// @description    Pop-up actual time with hovering mouse over relative time for TweetDeck.
// @include        https://web.tweetdeck.com/*
// @include        https://tweetdeck.twitter.com/*
// @require        http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @grant          none
// ==/UserScript==


(function($) {
	var filter = function(elem){
			if(!$(elem).find("a.txt-small").attr("title")){
				var data = new Date();
				data.setTime($(elem).attr("data-time"));
				if(data!=null){
					$(elem).find("a.txt-small").attr("title", data.toLocaleString());
				}
			}
	}
	
	$(document).delegate(".tweet-timestamp", "mouseover", function() {
		filter($(this));
	});
	
})(jQuery.noConflict(true));