CCC.hn date

Shows when the post and comments have been added to the forum

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         CCC.hn date
// @namespace    http://ccc.hn/user/3700-xorg/
// @version      0.2
// @description  Shows when the post and comments have been added to the forum
// @author       xorg
// @match        http://ccc.hn/topic/*
// ==/UserScript==

source = document.body.innerHTML;
tmp = source.match(/<!--[\s\S]*?-->/g);
dates = [];
for (var i = 0; i < tmp.length; i++) 
	if (tmp[i].indexOf('cached') + 1)
	{
		date = tmp[i].slice(16, -9);
		date = date.substr(0, 12) + (parseInt(date.substr(12, 2)) + 3) + date.substr(14);
		dates.push(date);
	}
k = 0;
allLink = document.getElementsByTagName('a');
for (var i = 0; i < allLink.length; i++)
    if ((allLink[i].innerHTML.indexOf('#') + 1) && (allLink[i].href.indexOf('#entry') + 1))
    {
        allLink[i].innerHTML += dates[k];
        k++;
    }