NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name Shiki Scripts Bundle
// @author Chortowod (https://openuserjs.org/users/Chortowod)
// @description Точное время новостей;
// @namespace http://shikimori.one/
// @version 1.0.4
// @match http://shikimori.org/*
// @match https://shikimori.org/*
// @match http://shikimori.one/*
// @match https://shikimori.one/*
// @match http://shikimori.me/*
// @match https://shikimori.me/*
// @match *://shiki.one/*
// @match *://shikimori.io/*
// @license MIT
// @require https://gist.githubusercontent.com/arantius/3123124/raw/grant-none-shim.js
// @updateURL https://openuserjs.org/meta/Chortowod/Shiki_Scripts_Bundle.meta.js
// @downloadURL https://openuserjs.org/install/Chortowod/Shiki_Scripts_Bundle.user.js
// @copyright 2026, Chortowod (https://openuserjs.org/users/Chortowod)
// ==/UserScript==
// включить/выкл отображение точного времени новостей
let newsDateCheck = true;
// заменять время подробным или же дописывать подробное время рядом в скобках
let newsDateReplace = true;
function newsDate() {
let options = {
year: 'numeric',
month: 'long',
day: 'numeric',
//weekday: 'long',
timezone: 'UTC',
hour: 'numeric',
minute: 'numeric',
second: 'numeric'
}
$('article time').each(function() {
let formattedDate = new Date($( this ).attr('datetime')).toLocaleString("ru", options);
if (newsDateReplace)
$(this).html(formattedDate);
else
$(this).append(' ('+formattedDate+')');
});
}
function ready(fn) {
document.addEventListener('page:load', fn);
document.addEventListener('turbolinks:load', fn);
if (document.attachEvent ? document.readyState === "complete" : document.readyState !== "loading") fn();
else document.addEventListener('DOMContentLoaded', fn);
}
if (newsDateCheck)
ready(newsDate);