R34 Date Fixer (DD-MM-YY)

Changes all dates on Rule34.xxx to a DD-MM-YY format

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         R34 Date Fixer (DD-MM-YY)
// @version      1.0
// @description  Changes all dates on Rule34.xxx to a DD-MM-YY format
// @match        *://rule34.xxx/*
// @author       Lemons22
// @copyright    2016+, Lemons22
// @namespace    https://greasyfork.org/en/users/46477
// @grant        none
// ==/UserScript==

/////////////////////////////////////////////////////////////////////////
// Original script by James Wood : https://greasyfork.org/en/users/516 //
/////////////////////////////////////////////////////////////////////////

(function commentsPostDate(){
  var el = document.getElementById('comment-list');
  if (el != null) {
    el.innerHTML = el.innerHTML.replace(/\b([A-Z])\w{2}\s\d{1,2},\s\d\d\d\d/g, function commentsPostDate(a) {
      var mdy = a.split(' ');
      var day = mdy[1].replace(',','');
      return day + ' ' + mdy[0] + ' ' + mdy[2];
  });
  }
})();

(function commentsCommentDate(){
  var el = document.getElementById('comment-list');
  if (el != null) {
    el.innerHTML = el.innerHTML.replace(/\b\d\d\d\d-\d\d-\d\d\b/g, function commentsCommentDate(b) {
      var mdy = b.split('-');
      return mdy[2] + '-' + mdy[1] + '-' + mdy[0];
  });
  }
})();

(function forumDate(){
  var el = document.getElementById('forum');
  if (el != null) {
    el.innerHTML = el.innerHTML.replace(/\b\d\d\/\d\d\/\d\d\b/g, function forumDate(c) {
      var mdy = c.split('/');
      return mdy[1] + '/' + mdy[0] + '/' + mdy[2];
  });
  }
})();

(function postStatsDate(){
  var el = document.getElementById('stats');
  el.innerHTML = el.innerHTML.replace(/\b\d\d\d\d-\d\d-\d\d\b/g, function postStatsDate(d) {
    var mdy = d.split('-');
    return mdy[2] + '-' + mdy[1] + '-' + mdy[0];
  });
})();



(function postCommentsDate(){
  var el = document.getElementsByTagName("b");
  for(var i in el){
    el[i].innerHTML = el[i].innerHTML.replace(/\b\d\d\d\d-\d\d-\d\d\b/g, function postCommentsDate(e) {
      var mdy = e.split('-');
      return mdy[2] + '-' + mdy[1] + '-' + mdy[0];
    });
  }
})();