twitter_full_tarih

Bu script tweetlerdeki relative zamanı normal tarihe çevirir.

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey to install this script.

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         twitter_full_tarih
// @namespace    http://tampermonkey.net/
// @version      1.1
// @description  Bu script tweetlerdeki relative zamanı normal tarihe çevirir.
// @author       [email protected]
// @match        https://twitter.com/*
// @grant        none
// ==/UserScript==


$(document).ready(function() {
    basla();
});


function basla(){
    $(".js-relative-timestamp").each(function(){
        timestamp = $(this).attr("data-time");
        full_tarih = timeConverter(timestamp);
        yazilacaklar = " <span id='full_tarih' title='" + timestamp + "'>" + full_tarih + "</span>";

        $(this).parent().append(yazilacaklar);

    });
}

function timeConverter(UNIX_timestamp){
  var a = new Date(UNIX_timestamp * 1000);
  var months = ['Ocak','Şubat','Mart','Nisan','Mayıs','Haziran','Temmuz','Ağustos','Eylül','Ekim','Kasım','Aralık'];
  var year = a.getFullYear();
  var month = months[a.getMonth()];
  var date = a.getDate();
  var hour = a.getHours();
  var min = a.getMinutes();
  var sec = a.getSeconds();
  //var time = date + ' ' + month + ' ' + year + ' ' + hour + ':' + min + ':' + sec ;
  var time = date + ' ' + month + ' ' + ' ' + hour + ':' + min + ':' + sec ;
  return time;
}