Sleazy Fork is available in English.

Rule34.xxx: Date Fixer (DD-MM-YY)

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

  1. // ==UserScript==
  2. // @name Rule34.xxx: Date Fixer (DD-MM-YY)
  3. // @version 1.1
  4. // @description Changes all dates on Rule34.xxx to a DD-MM-YY format
  5. // @match *://rule34.xxx/*
  6. // @author Lemons22
  7. // @copyright 2016+, Lemons22
  8. // @namespace https://greasyfork.org/en/users/46477
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. /////////////////////////////////////////////////////////////////////////
  14. // Original script by James Wood : https://greasyfork.org/en/users/516 //
  15. /////////////////////////////////////////////////////////////////////////
  16.  
  17. (function commentsPostDate(){
  18. var el = document.getElementById('comment-list');
  19. if (el != null) {
  20. el.innerHTML = el.innerHTML.replace(/\b([A-Z])\w{2}\s\d{1,2},\s\d\d\d\d/g, function commentsPostDate(a) {
  21. var mdy = a.split(' ');
  22. var day = mdy[1].replace(',','');
  23. return day + ' ' + mdy[0] + ' ' + mdy[2];
  24. });
  25. }
  26. })();
  27.  
  28. (function commentsCommentDate(){
  29. var el = document.getElementById('comment-list');
  30. if (el != null) {
  31. el.innerHTML = el.innerHTML.replace(/\b\d\d\d\d-\d\d-\d\d\b/g, function commentsCommentDate(b) {
  32. var mdy = b.split('-');
  33. return mdy[2] + '-' + mdy[1] + '-' + mdy[0];
  34. });
  35. }
  36. })();
  37.  
  38. (function forumDate(){
  39. var el = document.getElementById('forum');
  40. if (el != null) {
  41. el.innerHTML = el.innerHTML.replace(/\b\d\d\/\d\d\/\d\d\b/g, function forumDate(c) {
  42. var mdy = c.split('/');
  43. return mdy[1] + '/' + mdy[0] + '/' + mdy[2];
  44. });
  45. }
  46. })();
  47.  
  48. (function postStatsDate(){
  49. var el = document.getElementById('stats');
  50. el.innerHTML = el.innerHTML.replace(/\b\d\d\d\d-\d\d-\d\d\b/g, function postStatsDate(d) {
  51. var mdy = d.split('-');
  52. return mdy[2] + '-' + mdy[1] + '-' + mdy[0];
  53. });
  54. })();
  55.  
  56. (function postCommentsDate(){
  57. var el = document.getElementById('right-col');
  58. el.innerHTML = el.innerHTML.replace(/\b\d\d\d\d-\d\d-\d\d\b/g, function postCommentsDate(e) {
  59. var mdy = e.split('-');
  60. return mdy[2] + '-' + mdy[1] + '-' + mdy[0];
  61. });
  62. })();