fefe dates 2

Ersetzt auf blog.fefe.de das [l] in den Pro-Post-Links durch das Post-Datum.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name           fefe dates 2
// @description    Ersetzt auf blog.fefe.de das [l] in den Pro-Post-Links durch das Post-Datum.
// @version        2.1
// @author         arbu (original: flying sheep)
// @namespace      https://greasyfork.org/users/1220
// @include        http://blog.fefe.de/*
// @include        https://blog.fefe.de/*
// @run-at         document-end
// @grant          none
// ==/UserScript==
var head = document.getElementsByTagName('head')[0],
    style = document.createElement('style');
style.setAttribute('type', 'text/css');
style.textContent = 'body > h3 + ul > li > a[href^="?ts="] {color: black; text-decoration: none; margin-right: 1ex}';
head.appendChild(style);

for(var i = 3; i < document.links.length; i++)
  if(document.links[i].text == '[l]' && document.links[i].search.indexOf('?ts=') === 0)
    document.links[i].text = '[' +
      new Date((parseInt(document.links[i].search.substring(4), 16) ^ 0xfefec0de) * 1000).toLocaleTimeString() +
      ']';