您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
מתקן את בעיית הצגת ההודעות החדשות באשכולות
// ==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>"); });