How much posts today

Count how much posts made a user today (upto 40 posts)

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

// ==UserScript==
// @name        How much posts today
// @namespace   HMPT
// @description Count how much posts made a user today (upto 40 posts)
// @author      Hash G.
// @include     *hackforums.net/search.php*
// @require     http://code.jquery.com/jquery-2.2.2.min.js
// @version     0.1.0
// @grant       GM_getValue
// ==/UserScript==

if ($("td.tcat:nth-child(2) > span:nth-child(1) > strong:nth-child(1) > a:nth-child(1)").html() === "Author") {
	var nb_posts = $(".tborder tbody:nth-child(1) tr td:nth-child(7) span.smalltext:contains('Today')").not("em").length;
	$("strong:contains('Search Results')").after("<span class='smalltext' style='float: right;'>This user posted <span id='posts_today'>"+nb_posts+"</span> times today.</span>");	
	
	if (nb_posts > 19) {
		$("#posts_today").html("...");
		$.get(document.URL + "&sortby=dateline&order=desc&uid=&page=2", function(data) {
			nb_posts = nb_posts + $(data).find(".tborder tbody:nth-child(1) tr td:nth-child(7) span.smalltext:contains('Today')").length;
			$("#posts_today").html(nb_posts);
		});
	}
}