KissAnime Date Format Changer

Change format of Episode date from MM/DD/YYYY to DD/MM/YYYY

安装此脚本
作者推荐脚本

您可能也喜欢LiveChart.me Enhancement's

安装此脚本
  1. // ==UserScript==
  2. // @name KissAnime Date Format Changer
  3. // @namespace https://greasyfork.org/en/users/236500
  4. // @version 0.1
  5. // @description Change format of Episode date from MM/DD/YYYY to DD/MM/YYYY
  6. // @author as280093
  7. // @match https://kissanime.ru/Anime/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. $('.listing tr').each(function() {
  13. var lasttd = $(this).find('td:last-child').text();
  14. //console.log(lasttd);
  15.  
  16. var d = new Date(lasttd),
  17. month = '' + (d.getMonth() + 1),
  18. day = '' + d.getDate(),
  19. year = d.getFullYear();
  20.  
  21. if (month.length < 2) month = '0' + month;
  22. if (day.length < 2) day = '0' + day;
  23.  
  24. $(this).find('td:last-child').text( [day, month, year].join('/'));
  25. });
  26.  
  27. })();