от:dron.
Обновил скрипт, теперь он чистит цитаты.спойлер: обновленный скрипт
// ==UserScript==// @name fotu.ru ignore list// @namespace http://tampermonkey.net/// @version 2024-07-07// @description hides great photographers!// @author You// @match http*://foto.ru/forums/*// @require https://code.jquery.com/jquery-3.6.0.min.js// @grant none// ==/UserScript==const $ = window.$;const users = new Map();users.set('509212', ['сергей1978.23']);users.set('92986', ['prioritet']);users.set('428531', ['Yuriy_']);users.set('504617', ['Полный Кадр']);users.set('6832', ['Т.Д.']);function checkUsers(link, section) { for (const key of users.keys()) { if (link.indexOf(key) >= 0) { section.hide(); return 1; } } return 0;}function checkNames(section) { const txt = section.text(); for (const value of users.values()) { value.forEach(function(name, index){ if (txt.indexOf(name) >= 0) { section.hide(); } }); }}(function() { 'use strict'; $(document).ready(function(){ // выгребаем секции - это блоки сообщений $( "section" ).each(function() { const topic = $(this).find("div.topic-card__img.ibg"); const link = topic.children("a").eq(0).attr("href"); const section = $(this); // проверяем автора, если заблокировали, топаем к следующему сообщению if (checkUsers(link, section) > 0) { return true; } // проверяем цитаты великих const contentText = section.find("div.post-text-js") const quote = contentText.children("blockquote") quote.each(function(){ checkNames($(this)); }); }); });})();Подробнее
Спасибо)
понял, что если вдруг начнут прорываться "цитаты великих", надо будет юзер нэйм обновить, так как цитаты по ним парсятся (нет id-ишника в цитате в отличии от поста).