twitter_full_tarih

Bu script tweetlerdeki relative zamanı normal tarihe çevirir.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==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;
}