R34 Date Fixer

Changes the YY-MM-DD formatted dates on Rule34.xxx to MM-DD-YY

ของเมื่อวันที่ 31-05-2016 ดู เวอร์ชันล่าสุด

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

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

คุณจะต้องติดตั้งส่วนขยาย เช่น 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       R34 Date Fixer
// @namespace  https://greasyfork.org/en/scripts/20110
// @version    1.0
// @description  Changes the YY-MM-DD formatted dates on Rule34.xxx to MM-DD-YY
// @match      *://rule34.xxx/*
// @copyright  2014+, James Wood, edited by Lemons22
// @grant      none
// ==/UserScript==

// If you want a date format other than YYYY-MM-DD, see http://bit.ly/1naOVYW.
// It outputs D/M/YYYY, so gives examples of changing the separators and order
// of components, as well as trimming off leading ‘0’s. Don't be afraid to
// customise; there's barely anything that could go wrong!

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