Как я могу заблокировать/скрыть пользователя dbs все сообщения? С помощью пользователя?Скрыть текст от пользователя с помощью jQuery в usercript
<article class="container">
<div class="messages" id="messages">
<div class="message info">
<span class="nick">
<a title="2016-01-27 16:27:48">
*
</a>
</span>
<pre class="text">Users online: Hej</pre>
</div>
<div class="message info">
<span class="nick">
<a title="2016-01-27 16:27:58">
*
</a>
</span>
<pre class="text">dbs joined</pre>
</div>
<div class="message">
<span class="nick">
<a title="2016-01-27 16:24:55">
dbs
</a>
</span>
<pre class="text">Hej</pre>
</div>
</div>
</article>
Я знаю, что если д.б.н. сменить ник я получаю сообщение снова ..
сайт https://hack.chat/?lil и лил это номер ..
EDIT:
Мой план был что-то вроде этого
// ==UserScript==
// @name HackChat
// @namespace some
// @description Hide unwanted user.
// @include https://hack.chat/*
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js
// @version 1.0
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_addStyle
// ==/UserScript==
/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts,
that detects and handles AJAXed content.
Usage example:
waitForKeyElements (
"div.comments"
, commentCallbackFunction
);
//--- Page-specific function to do what we want when the node is found.
function commentCallbackFunction (jNode) {
jNode.text ("This comment changed by waitForKeyElements().");
}
IMPORTANT: This function requires your script to have loaded jQuery.
*/
var hiddenNick = $("article.container............").has ("dbs");
hiddenNick.hide();
Никто не имеет ответа на это сообщение? –