Greasy Fork is available in English.
מתקן את בעיית הצגת ההודעות החדשות באשכולות
// ==UserScript==
// @name המודיע של ניב
// @namespace http://tampermonkey.net/
// @version 0.1
// @description מתקן את בעיית הצגת ההודעות החדשות באשכולות
// @author You
// @match https://www.fxp.co.il/show*
// @icon https://www.google.com/s2/favicons?sz=64&domain=fxp.co.il
// @grant none
// @license MIT
// @unwrap
// ==/UserScript==
socket.on('showthreadpost', function (data) {
if (data.userid === USER_ID_FXP) {
return;
}
$(data.html).appendTo('#posts').hide().slideDown('slow');
let tempidlive = $('#posts li.postbit:last-child').attr('id');
tempidlive = tempidlive.replace(/[^\d.]/g, "");
window.lastpostid_ajax_live = parseInt(tempidlive);
window.ajax_last_post = parseInt(tempidlive);
newpostobj["post_" + lastpostid_ajax_live] = 0;
const countunreadpostname = countunreadpost();
$("#post_" + lastpostid_ajax_live + " .postbody").css({
"background-color": "#8AD1FF"
});
if ($('#newcom').length == 0) {
$("body").append('<div id="newcom" class="newcom">תגובות חדשות <div class="arrowdown"></div></div>');
}
$('#counterpost').remove();
$("#newcom").append("<span id='counterpost'>(" + countunreadpostname + ")</span>");
});