fefe dates 2

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==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() +
      ']';