R34 Date Fixer

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

As of 2016-05-31. See the latest version.

// ==UserScript==
// @name       R34 Date Fixer
// @namespace  http://userscripts.org/scripts/show/103812
// @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, edit 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];
    });
})();