// ==UserScript==
// @name Lewdcorner/Azkosels Corner/F95zone/ULMF/ATF Ignore Members And More V3.0
// @namespace http://tampermonkey.net
// @version 6.9
// @description ignore members and more in xenforo forums
// @author You
// @match https://lewdcorner.com/threads/*
// @match https://lewdcorner.com/direct-messages/*
// @match https://azkoselscorner.com/index.php?threads/*
// @match https://azkoselscorner.com/index.php?direct-messages/*
// @match https://f95zone.to/threads/*
// @match https://f95zone.to/direct-messages/*
// @match https://ulmf.org/threads/*
// @match https://ulmf.org/direct-messages/*
// @match https://allthefallen.moe/forum/index.php?threads/*
// @match https://allthefallen.moe/forum/index.php?direct-messages/*
// @match https://lewdcorner.com
// @match https://f95zone.to
// @match https://azkoselscorner.com/index.php
// @match https://allthefallen.moe/forum/index.php
// @match https://ulmf.org
// @match https://lewdcorner.com/forums/*
// @match https://f95zone.to/forums/*
// @match https://ulmf.org/forums/*
// @match https://azkoselscorner.com/index.php?forums/*
// @match https://allthefallen.moe/forum/index.php?forums/*
// @match https://lewdcorner.com/tags/*
// @match https://f95zone.to/tags/*
// @match https://ulmf.org/tags/*
// @match https://azkoselscorner.com/index.php?tags/*
// @match https://allthefallen.moe/forum/index.php?tags/*
// @match https://lewdcorner.com/latest-updatesv2*
// @match https://lewdcorner.com/latest-updates.php*
// @match https://f95zone.to/sam/latest_alpha/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant GM_setValue
// @grant GM_getValue
// @run-at document-start
// @require https://code.jquery.com/jquery-3.6.0.min.js
// @license wolfitdm
// @downloadURL https://update.greasyfork.org/scripts/590203/LewdcornerAzkosels%20CornerF95zoneULMFATF%20Ignore%20Members%20And%20More%20V30.user.js
// @updateURL https://update.greasyfork.org/scripts/590203/LewdcornerAzkosels%20CornerF95zoneULMFATF%20Ignore%20Members%20And%20More%20V30.meta.js
// ==/UserScript==
// All XenForo Forums
var addIgnoreButton = true;
var hideUsersPermanent = true;
// Threads
var ignoreMembers = ["user1", "user2", "user3"];
var ignoreReactionsMembers = ["user1", "user2", "user3"];
var ignoreTags = ["VN", "DAZ", "Hand Drawn", "Ren'Py", "Complete", "AI", "RPGM", "ports", "Hiatus", "Abondened", "Loli", "animated", "2d game", "sleep sex", "RPG", "Patreon", "Active"];
var ignoreTagsByClick = true;
var ignoreMembersAll = false;
var ignoreReactionsAll = false;
// Direct Messages
var ignoreMembersDirectMessages = ["user1", "user2", "user3"];
var ignoreMembersDirectMessagesReactions = ["user1", "user2", "user3"];
var ignoreMembersDirectMessagesAll = false;
var ignoreMembersDirectMessagesReactionsAll = false;
// LC Threads
var ignoreLCSignatureMembers = ["user1", "user2", "user3"];
// LC Direct Messages
var ignoreLCSignatureDirectMessagesMembers = ["user1", "user2", "user3"];
// LC Threads and Direct Messages
var ignoreLCBanners = [];
var ignoreLCDonationBanners = true;
var ignoreLCBadges = true;
var ignoreLCSignaturesAll = false;
var ignoreLCWhiteSpaceSoMuchYouCan = false;
// ------------------------------------------------
// CODE DONT'T TOUCH THIS PLEASE
// -----------------------------------------------
var ignoreLCBannersOld = ["t1", "t2", "t3", "t4", "t5", "t6", "Registered", "Lewd", "VIPplus", "UwU", "Godly", "Donator", "Donator2"];
function isString(wert) {
return typeof wert === 'string' || wert instanceof String;
}
function safeArray(a) {
var b = [];
a.forEach((element, index) => {
if (element === undefined || element === null || !isString(element) || element.length == 0) {
return;
}
b.push(element);
});
return b;
}
ignoreMembers = safeArray(ignoreMembers);
ignoreReactionsMembers = safeArray(ignoreReactionsMembers);
ignoreTags = safeArray(ignoreTags);
ignoreMembersDirectMessages = safeArray(ignoreMembersDirectMessages);
ignoreMembersDirectMessagesReactions = safeArray(ignoreMembersDirectMessagesReactions);
ignoreLCSignatureMembers = safeArray(ignoreLCSignatureMembers);
ignoreLCSignatureDirectMessagesMembers = safeArray(ignoreLCSignatureDirectMessagesMembers);
ignoreLCBanners = safeArray(ignoreLCBanners);
function waitForElement(selector, callback) {
const observer = new MutationObserver((mutations, observer) => {
const element = document.querySelector(selector);
if (element) {
observer.disconnect();
callback(element);
}
});
observer.observe(document.body, {
childList: true,
subtree: true,
});
}
var useSameId = true;
function GM_addStyle_old(css, id) {
if (useSameId) {
id = "";
}
const style = document.getElementById("GM_addStyleBy8626") || (function() {
const style = document.createElement('style');
style.type = 'text/css';
style.id = "GM_addStyleBy8626" + id;
document.head.appendChild(style);
return style;
})();
const sheet = style.sheet;
sheet.insertRule(css, (sheet.rules || sheet.cssRules || []).length);
}
function GM_addStyle(css, id) {
try {
GM_addStyle_old(css, id);
} catch (error) {
console.error(error);
}
}
function ignoreLCDonBanners() {
if (ignoreLCDonationBanners) {
GM_addStyle(".jblcDonateNotice, .stfrtDonateBubble, .stfrtDonateBubble.is-unavailable { display: none !important; }", "12");
$(document).ready(function() {
waitForElement('.stfrtDonate-liteBtn.stfrtDonate-hideToday', function(element) {
$(element).trigger("click");
});
});
}
}
var ignoreTagsOriginal = [...ignoreTags];
var ignoreReactionsMembersOriginal = [...ignoreReactionsMembers];
var ignoreMembersDirectMessagesReactionsOriginal = [...ignoreMembersDirectMessagesReactions];
var ignoreLCBannersOriginal = [...ignoreLCBanners];
if (addIgnoreButton && hideUsersPermanent) {
ignoreLCBanners = GM_getValue("ignoreLCRanks", JSON.stringify(ignoreLCBannersOriginal));
ignoreLCBanners = JSON.parse(ignoreLCBanners);
ignoreLCBanners = safeArray(ignoreLCBanners);
ignoreTags = GM_getValue("ignoreXenForoTags", JSON.stringify(ignoreTagsOriginal));
ignoreTags = JSON.parse(ignoreTags);
ignoreTags = safeArray(ignoreTags);
ignoreReactionsMembers = GM_getValue("ignoreXenForoRUsers", JSON.stringify(ignoreReactionsMembersOriginal));
ignoreReactionsMembers = JSON.parse(ignoreReactionsMembers);
ignoreReactionsMembers = safeArray(ignoreReactionsMembers);
ignoreMembersDirectMessagesReactions = GM_getValue("ignoreXenForoRDMUsers", JSON.stringify(ignoreMembersDirectMessagesReactionsOriginal));
ignoreMembersDirectMessagesReactions = JSON.parse(ignoreMembersDirectMessagesReactions);
ignoreMembersDirectMessagesReactions = safeArray(ignoreMembersDirectMessagesReactions);
}
var homePage = window.location.href;
var isLCHome = homePage == "https://lewdcorner.com/";
var isF95Home = homePage == "https://f95zone.to/";
var isULMFHome = homePage == "https://ulmf.org/";
var isACHome = homePage == "https://azkoselscorner.com/index.php";
var isATFHome = homePage == "https://allthefallen.moe/forum/index.php";
var isHome = isLCHome || isF95Home || isACHome || isATFHome;
(function($) {
// 1. Define the custom method on jQuery's prototype
$.fn.cone = function(eventType, callback) {
// 'this' represents the jQuery selector collection
return this.each(function() {
var $element = $(this);
if ($element.hasClass("bindme-ele-xenforo")) {
return true;
}
$element.toggleClass("bindme-ele-xenforo", true);
// 2. Bind the standard event listener
$element.on(eventType, function handler(event) {
// 3. Immediately unbind the event so it only fires ONCE
$element.off(eventType, handler);
// 4. Execute the user's original callback function
return callback.apply(this, arguments);
});
});
};
}(jQuery));
if (ignoreTagsByClick) {
function ignoreTagByClick(event) {
var html = $(this).html().trim();
html = html.replace("<em class=\"textHighlight\">","");
html = html.replace("<em class=\"textHighlight\">","");
html = html.replace("</em>","");
html = html.replace("</em>","");
html = html.trim();
//alert(html);
if (confirm("Do you want ignore the Tag " + html + " ? ")) {
event.stopPropagation();
event.preventDefault();
if (!ignoreTags.includes(html)) {
ignoreTags.push(html);
GM_setValue("ignoreXenForoTags", JSON.stringify(ignoreTags));
}
alert("Ignored Tags are : " + ignoreTags.join(", "));
};
window.location.reload();
};
} else {
function ignoreTagByClick(event) {
};
}
if (isATFHome) {
if (ignoreTags.length > 0 || ignoreTagsByClick) {
function ignoreATFGames() {
$(".p-body-sidebar .contentRow-main a span").each(function( index ) {
var html = $(this).html().trim();
if (ignoreTags.includes(html)) {
//alert(html);
$(this).closest("li.block-row").remove();
}
}).cone("click", ignoreTagByClick);
};
window.addEventListener("load", function() {
ignoreATFGames();
});
$(document).ready(function() {
ignoreATFGames();
setInterval(ignoreATFGames, 1000);
});
}
} else if (isLCHome) {
if (ignoreTags.length > 0 || ignoreTagsByClick) {
function ignoreLCGames() {
var ignoreString = "article.lcForumStats-row";
var elements = document.querySelectorAll(ignoreString);
elements.forEach((userItem) => {
var ele2 = $(userItem).find(".lcForumStats-thread a");
//alert(ele2.html());
var ele = $(userItem).find(".lcForumStats-thread .lcForumStats-prefixes span");
if (ele.length > 0) {
ele.each(function( index ) {
var html = $(this).html();
if (html !== undefined) {
html = html.trim();
if (ignoreTags.includes(html)) {
$(userItem).remove();
}
}
}).cone("click", ignoreTagByClick);
}
});
$(".p-body-sidebar .contentRow-main a span").each(function( index ) {
var html = $(this).html().trim();
if (ignoreTags.includes(html)) {
//alert(html);
$(this).closest("li.block-row").remove();
}
}).cone("click", ignoreTagByClick);
};
window.addEventListener("load", function() {
ignoreLCGames();
});
$(document).ready(function() {
ignoreLCGames();
setInterval(ignoreLCGames, 1000);
});
ignoreLCDonBanners();
}
} else if (isF95Home) {
if (ignoreTags.length > 0 || ignoreTagsByClick) {
function ignoreF95Games() {
var ignoreString = ".brmsContentList .itemContent";
var elements = document.querySelectorAll(ignoreString);
elements.forEach((userItem) => {
var ele2 = $(userItem).find(".listBlock.itemTitle a");
//alert(ele2.html());
var ele = $(userItem).find(".listBlock.itemTitle a span");
if (ele.length > 0) {
ele.each(function( index ) {
var html = $(this).html().trim();
if (html !== undefined) {
if (ignoreTags.includes(html)) {
$(userItem).remove();
}
}
}).cone("click", ignoreTagByClick);
}
});
$(".p-body-sidebar .contentRow-main a span").each(function( index ) {
var html = $(this).html().trim();
if (ignoreTags.includes(html)) {
//alert(html);
$(this).closest("li.block-row").remove();
}
}).cone("click", ignoreTagByClick);
};
window.addEventListener("load", function() {
ignoreF95Games();
});
$(document).ready(function() {
ignoreF95Games();
setInterval(ignoreF95Games, 1000);
});
}
} else if (isACHome || isULMFHome) {
if (ignoreTags.length > 0 || ignoreTagsByClick) {
function ignoreACGames() {
var ignoreString = ".forumStatsContainer .forumStats-main table.dataList-table tr.dataList-row";
var elements = document.querySelectorAll(ignoreString);
elements.forEach((userItem) => {
var ele2 = $(userItem).find(".dataList-textRow span[data-xf-init]");
//alert(ele2.html());
var ele = $(userItem).find(".dataList-textRow span[data-xf-init] span");
if (ele.length > 0) {
ele.each(function( index ) {
var html = $(this).html().trim();
if (html !== undefined) {
html = html.trim();
if (ignoreTags.includes(html)) {
$(userItem).remove();
}
}
}).cone("click", ignoreTagByClick);
}
});
$(".p-body-sidebar .contentRow-main a span, .p-body-sidebar .contentRow-main a span").each(function( index ) {
var html = $(this).html().trim();
if (ignoreTags.includes(html)) {
//alert(html);
$(this).closest("li.block-row").remove();
}
}).cone("click", ignoreTagByClick);
};
window.addEventListener("load", function() {
ignoreACGames();
});
$(document).ready(function() {
ignoreACGames();
setInterval(ignoreACGames, 1000);
});
}
}
if (homePage.startsWith("https://f95zone.to/sam/latest_alpha/")) {
function ignoreF95LuGames1() {
$(".resource-tile_label-wrap .resource-tile_label-wrap_left div,.resource-tile_label-wrap .resource-tile_label-wrap_right div, .resource-tile_tags span").each(function( index ) {
var html = $(this).text().trim();
//alert(html);
if (ignoreTags.includes(html)) {
//alert(html);
$(this).closest(".resource-tile").remove();
}
});
};
window.addEventListener("load", function() {
ignoreF95LuGames1();
});
$(document).ready(function() {
ignoreF95LuGames1();
setInterval(ignoreF95LuGames1, 1000);
});
} else if (homePage.startsWith("https://lewdcorner.com/latest-updates.php")) {
function ignoreLCLuGames1() {
$(".card__mediaBadges .lc-badge").each(function( index ) {
var html = $(this).html().trim();
if (ignoreTags.includes(html)) {
//alert(html);
$(this).closest(".lc-card").remove();
}
});
$(".lc-tags .lc-tag").each(function( index ) {
var html = $(this).html().trim();
//alert(html);
if (ignoreTags.includes(html)) {
//alert(html);
$(this).closest(".lc-card").remove();
}
});
};
window.addEventListener("load", function() {
ignoreLCLuGames1();
});
$(document).ready(function() {
ignoreLCLuGames1();
setInterval(ignoreLCLuGames1, 1000);
});
ignoreLCDonBanners();
} else if (homePage.startsWith("https://lewdcorner.com/latest-updatesv2")) {
function ignoreLCLuGames2() {
$(".lcCardMediaBadges .lcCardBadge").each(function( index ) {
var html = $(this).html().trim();
if (ignoreTags.includes(html)) {
//alert(html);
$(this).closest(".lcCardSlot").remove();
}
});
$(".lcCardRestingTagList button").each(function( index ) {
var html = $(this).html().trim();
if (ignoreTags.includes(html)) {
//alert(html);
$(this).closest(".lcCardSlot").remove();
}
});
$(".lcCardHoverDetails .lcCardHoverTags span").each(function( index ) {
var html = $(this).html().trim();
if (ignoreTags.includes(html)) {
//alert(html);
$(this).closest(".lcCardSlot").remove();
}
});
};
window.addEventListener("load", function() {
ignoreLCLuGames2();
});
$(document).ready(function() {
ignoreLCLuGames2();
setInterval(ignoreLCLuGames2, 1000);
});
ignoreLCDonBanners();
} else if (homePage.startsWith("https://azkoselscorner.com/index.php?forums/")) {
function ignoreACGames1() {
$(".thread-title-with-hover .prefix-label .label").each(function( index ) {
var html = $(this).html().trim();
if (ignoreTags.includes(html)) {
//alert(html);
$(this).closest(".thread-widget-slider").remove();
}
}).cone("click", ignoreTagByClick);
$("a.thread-title-with-hover[data-tag-list]").each(function (index ) {
var html = $(this).data("tagList");
//alert(html);
//alert(html);
ignoreTags.forEach((element, index) => {
var tag = "</xf:if>"+ element + "<xf:if is='$i'>";
var tag2 = "</xf:if>" + element;
if (html.indexOf(tag) !== -1 || html.indexOf(tag2) !== -1) {
$(this).closest(".thread-widget-slider").remove();
}
});
});
};
window.addEventListener("load", function() {
ignoreACGames1();
});
$(document).ready(function() {
ignoreACGames1();
setInterval(ignoreACGames1, 1000);
});
} else if (homePage.startsWith("https://lewdcorner.com/tags/") || homePage.startsWith("https://f95zone.to/tags/") || homePage.startsWith("https://azkoselscorner.com/index.php?tags/") || homePage.startsWith("https://allthefallen.moe/forum/index.php?tags/") || homePage.startsWith("https://ulmf.org/tags/")) {
function ignoreGamesX() {
$(".contentRow-minor .tagItem").each(function( index ) {
var html = $(this).html().trim();
html = html.replace("<em class=\"textHighlight\">","");
html = html.replace("<em class=\"textHighlight\">","");
html = html.replace("</em>","");
html = html.replace("</em>","");
html = html.trim();
//alert(html);
if (ignoreTags.includes(html)) {
//alert(html);
$(this).closest(".block-row").remove();
}
}).cone("click", ignoreTagByClick);
};
window.addEventListener("load", function() {
ignoreGamesX();
});
$(document).ready(function() {
ignoreGamesX();
setInterval(ignoreGamesX, 1000);
});
ignoreLCDonBanners();
} else if (homePage.startsWith("https://lewdcorner.com/forums/") || homePage.startsWith("https://f95zone.to/forums/") || homePage.startsWith("https://allthefallen.moe/forum/index.php?forums/") || homePage.startsWith("https://ulmf.org/forums/")) {
function ignoreGames1() {
$(".structItem-title a.labelLink span, .lcGameCard-mediaBadgeLeft span, .lcGameCard-hoverPanel .lcGameCard-tags .tagList .js-tagList a").each(function( index ) {
var html = $(this).html().trim();
//alert(html);
if (ignoreTags.includes(html)) {
//alert(html);
$(this).closest(".structItem--thread").remove();
}
}).cone("click", ignoreTagByClick);
};
window.addEventListener("load", function() {
ignoreGames1();
});
$(document).ready(function() {
ignoreGames1();
setInterval(ignoreGames1, 1000);
});
ignoreLCDonBanners();
} else if (!isHome) {
if (ignoreTags.length > 0 || ignoreTagsByClick) {
function ignoreGames2() {
var ignoreString = ".p-body-header .p-title-value a";
var elements = document.querySelectorAll(ignoreString);
elements.forEach((userItem) => {
var ele2 = $(userItem).find("span");
//alert(ele2.html());
var ele = $(userItem).find("span");
if (ele.length > 0) {
ele.each(function( index ) {
var html = $(this).html().trim();
if (html !== undefined) {
if (ignoreTags.includes(html)) {
$(".p-body-main").remove();
$(".p-body-pageContent").remove();
}
}
}).cone("click", ignoreTagByClick);
}
});
$(".p-description .tagList a").each(function( index ) {
var html = $(this).html().trim();
if (ignoreTags.includes(html)) {
$(".p-body-main").remove();
$(".p-body-pageContent").remove();
}
}).cone("click", ignoreTagByClick);
};
window.addEventListener("load", function() {
ignoreGames2();
});
$(document).ready(function() {
ignoreGames2();
setInterval(ignoreGames2, 1000);
});
}
var ignoreMembersOriginal = [...ignoreMembers];
var ignoreMembersDirectMessagesOriginal = [...ignoreMembersDirectMessages];
if (!hideUsersPermanent) {
GM_setValue("ignoreXenForoUsers", JSON.stringify(ignoreMembers));
GM_setValue("ignoreXenForoUsersDM", JSON.stringify(ignoreMembersDirectMessages));
}
var newIgnoreMembers = GM_getValue("ignoreXenForoUsers", JSON.stringify(ignoreMembers));
var newDirectIgnoreMembers = GM_getValue("ignoreXenForoUsersDM", JSON.stringify(ignoreMembersDirectMessages));
newIgnoreMembers = JSON.parse(newIgnoreMembers);
newDirectIgnoreMembers = JSON.parse(newDirectIgnoreMembers);
newIgnoreMembers = safeArray(newIgnoreMembers);
newDirectIgnoreMembers = safeArray(newDirectIgnoreMembers);
ignoreMembers = newIgnoreMembers;
ignoreMembersDirectMessages = newDirectIgnoreMembers;
var cssSelectors10 = [];
ignoreMembersDirectMessages.forEach((element, index) => {
cssSelectors10.push("article.message.message--conversationMessage.js-message[data-author='"+ element + "']");
});
var cssSelectors11 = [];
ignoreMembersDirectMessagesReactions.forEach((element, index) => {
cssSelectors11.push("article.message.message--conversationMessage.js-message[data-author='"+ element + "']");
});
var cssSelectors = [];
ignoreMembers.forEach((element, index) => {
cssSelectors.push("article.message.message--post.js-post[data-author='"+ element + "']");
});
var cssSelectors2 = [];
ignoreReactionsMembers.forEach((element, index) => {
cssSelectors2.push("article.message.message--post.js-post[data-author='"+ element + "']");
});
var cssSelectors3 = [];
ignoreLCBanners.forEach((element, index) => {
cssSelectors3.push("html body div.userBanner."+ element + ".message-userBanner");
});
var cssSelectors4 = [];
ignoreLCSignatureMembers.forEach((element, index) => {
cssSelectors4.push("article.message.message--post.js-post[data-author='"+ element + "']");
});
var cssSelectors40 = [];
ignoreLCSignatureDirectMessagesMembers.forEach((element, index) => {
cssSelectors40.push("article.message.message--conversationMessage.js-message[data-author='"+ element + "']");
});
var cssElement = cssSelectors.join(",");
var cssElement2 = cssSelectors2.join(",");
var cssElement3 = cssSelectors3.join(",");
var cssElement4 = cssSelectors4.join(",");
var cssElement40 = cssSelectors40.join(",");
var cssElement10 = cssSelectors10.join(",");
var cssElement11 = cssSelectors11.join(",");
var cssContent10 = cssElement10 + " { display: none !important; }";
var cssContent11 = cssElement11 + " .reactionsBar.js-reactionsList.is-active { display: none !important; }";
var cssContent = cssElement + " { display: none !important; }";
var cssContent2 = cssElement2 + " .reactionsBar.js-reactionsList.is-active { display: none !important; }";
var cssContent3 = ".reactionsBar.js-reactionsList.is-active { display: none !important; }";
var cssContent4 = "article.message.message--post.js-post[data-author] { display: none !important; }";
var cssContent5 = cssElement3 + " { display: none !important; }";
var cssContent6 = cssElement4 + " aside.message-signature { display: none !important; }";
var cssContent60 = cssElement40 + " aside.message-signature { display: none !important; }";
var cssContent7 = "article.message.message--conversationMessage.js-message[data-author] { display: none !important; }";
if (ignoreMembersDirectMessagesAll) {
GM_addStyle(cssContent7, "15");
}
if (ignoreMembersDirectMessages.length > 0) {
GM_addStyle(cssContent10, "13");
}
if (ignoreMembersDirectMessagesReactions.length > 0) {
GM_addStyle(cssContent11, "14");
}
if (ignoreLCSignatureMembers.length > 0) {
GM_addStyle(cssContent6, "10");
}
if (ignoreLCSignatureDirectMessagesMembers.length > 0) {
GM_addStyle(cssContent60, "100");
}
if (ignoreLCSignaturesAll) {
GM_addStyle("aside.message-signature { display: none !important; }", "11");
}
if (ignoreMembers.length > 0) {
GM_addStyle(cssContent, "1");
}
if (ignoreReactionsMembers.length > 0) {
GM_addStyle(cssContent2, "2");
}
if (ignoreMembersAll) {
GM_addStyle(cssContent4, "4");
}
if (ignoreReactionsAll || ignoreMembersDirectMessagesReactionsAll) {
GM_addStyle(cssContent3, "3");
}
if (ignoreLCBanners.length > 0) {
GM_addStyle(cssContent5, "5");
}
if (ignoreLCBadges) {
GM_addStyle("div.featuredBadges.featuredBadges--message { display: none !important; }", "6");
}
if (ignoreLCWhiteSpaceSoMuchYouCan) {
GM_addStyle("div.st-years-of-service, .xentr-message-container .xentr-slider-nav { padding: 0px !important; margin: 0px !important; }", "7");
GM_addStyle("div.st-years-of-service { margin-top: 5px !important; }", "9");
GM_addStyle("dl.pairs.pairs--justified { padding: 0 5px 0px 5px !important; }", "8");
}
ignoreLCDonBanners();
if (addIgnoreButton) {
var isLC = homePage.startsWith("https://lewdcorner.com/");
GM_addStyle(".message-attribution-main .set_r,.message-attribution-main .reset_r,.message-attribution-main .ignore_xenforo_user,.message-attribution-main .ignore_custom_member,.message-attribution-main .reset_custom_member,.message-attribution-main .add_tags,.message-attribution-main .show_tags,.message-attribution-main .reset_tags { display: inline-block !important; font-size: 12px !important; max-height: 0px !important; color: unset !important; }", "1200");
GM_addStyle('body[data-template="thread_view"] .block--messages article.message.message--post .message-attribution a { min-height: 0px !important; font-size: 12px !important; color: unset;}', "1201");
GM_addStyle('.message-attribution-main .reset_c_sep { font-size: 12px !important; }', "1202");
GM_addStyle('body[data-template="thread_view"] .block--messages article.message.message--post .message-attribution { font-size: 12px !important; }', "1203");
GM_addStyle('a.reset_ranks_lc_r, a.set_ranks_lc_r { font-size: 12px !important; display: block !important; padding: 0px !important; margin: 0px !important; line-height: 12px !important; color: #1472d7}', "1204");
window.addEventListener("load", function() {
$("html body div.userBanner.message-userBanner").each(function (index ) {
var classes = $(this).attr('class');
var classesArray = classes.split(/\s+/);
var rank = classesArray[1];
if (homePage.startsWith("https://allthefallen.moe/") || homePage.startsWith("https://f95zone.to/")) {
for (const element of classesArray) {
if (element === "Moderator") {
rank = element;
}
if (element.startsWith("userBanner--")) {
rank = element;
break;
}
}
}
$(this).on("click", function(event) {
var answer = confirm("Do you want ignore the rank " + rank + " ?");
if (answer) {
if (!ignoreLCBanners.includes(rank)) {
ignoreLCBanners.push(rank);
GM_setValue("ignoreLCRanks", JSON.stringify(ignoreLCBanners));
alert("rank " + rank + " is ignored");
window.location.reload();
}
}
});
});
var elements = document.querySelectorAll("article.message[data-author]");
elements.forEach((userItem) => {
var author = $(userItem).data("author");
$(userItem).find("section.message-user").each(function() {
var element = $(this).attr("itemid");
if (element === undefined) {
var ele = $(this).find(".message-userDetails .message-name a");
if (ele.length) {
element = ele.attr("href");
}
}
if (element !== undefined) {
var addedElementOriginal = this;
var addedElement = this;
addedElement = $(userItem).find(".message-attribution .message-attribution-main");
$(addedElement).append("<span class=\"reset_c_sep\"> | </span><a class=\"ignore_xenforo_user\" href=\"" + element + "ignore\">Ignore User</a>");
if (useSameId) {
$(addedElement).append("<span class=\"reset_c_sep\"> | </span><a class=\"ignore_custom_member\" data-author=\""+author+"\" href=\"#\">Hide User</a>");
$(addedElement).append("<span class=\"reset_c_sep\"> | </span><a class=\"reset_custom_member\" href=\"#\">Reset Ignore Users</a>");
$(addedElement).append("<span class=\"reset_c_sep\"> | </span><a class=\"reset_tags\" href=\"#\">Reset Ignore Tags</a>");
$(addedElement).append("<span class=\"reset_c_sep\"> | </span><a class=\"reset_r\" href=\"#\">Reset Ignore Reactions</a>");
$(addedElement).append("<span class=\"reset_c_sep\"> | </span><a class=\"show_tags\" href=\"#\">Set Ignore Users</a>");
$(addedElement).append("<span class=\"reset_c_sep\"> | </span><a class=\"add_tags\" href=\"#\">Set Ignore Tags</a>");
$(addedElement).append("<span class=\"reset_c_sep\"> | </span><a class=\"set_r\" href=\"#\">Set Ignore Reactions</a>");
$(addedElementOriginal).append("<a class=\"reset_ranks_lc_r\" href=\"#\">Reset Ignored Ranks</a>");
$(addedElementOriginal).append("<a class=\"set_ranks_lc_r\" href=\"#\">Set Ignored Ranks</a>");
}
}
});
if (useSameId) {
var selector = "section.message-user ";
var selectorOriginal = selector;
selector = ".message-attribution .message-attribution-main a";
$(userItem).on('click', selector + '.ignore_custom_member', function(event) {
event.preventDefault();
var meAuthor = $(this).data("author");
if (!ignoreMembers.includes(meAuthor)) {
ignoreMembers.push(meAuthor);
}
if (!ignoreMembersDirectMessages.includes(meAuthor)) {
ignoreMembersDirectMessages.push(meAuthor);
}
GM_setValue("ignoreXenForoUsers", JSON.stringify(ignoreMembers));
GM_setValue("ignoreXenForoUsersDM", JSON.stringify(ignoreMembersDirectMessages));
GM_addStyle("article.message.message--conversationMessage.js-message[data-author=\""+meAuthor+"\"] { display: none !important; }", "1400");
GM_addStyle("article.message.message--post.js-post[data-author=\""+meAuthor+"\"] { display: none !important; }", "1401");
});
$(userItem).on('click', selector + '.reset_custom_member', function(event) {
event.preventDefault();
GM_setValue("ignoreXenForoUsers", JSON.stringify(ignoreMembersOriginal));
GM_setValue("ignoreXenForoUsersDM", JSON.stringify(ignoreMembersDirectMessagesOriginal));
newIgnoreMembers = GM_getValue("ignoreXenForoUsers", JSON.stringify(ignoreMembersOriginal));
newDirectIgnoreMembers = GM_getValue("ignoreXenForoUsersDM", JSON.stringify(ignoreMembersDirectMessagesOriginal));
newIgnoreMembers = JSON.parse(newIgnoreMembers);
newDirectIgnoreMembers = JSON.parse(newDirectIgnoreMembers);
ignoreMembers = newIgnoreMembers;
ignoreMembersDirectMessages = newDirectIgnoreMembers;
window.location.reload();
});
$(userItem).on('click', selector + '.add_tags', function(event) {
var userInput = prompt("Enter multiple tags separated by commas (e.g., Apple, Banana, Orange):", ignoreTags.join(", "));
if (userInput === null) {
return false;
}
var itemsArray = userInput ? userInput.split(',').map(item => item.trim()) : [];
itemsArray = safeArray(itemsArray);
ignoreTags = [...itemsArray];
GM_setValue("ignoreXenForoTags", JSON.stringify(ignoreTags));
alert("Ignored Tags are : " + ignoreTags.join(", "));
window.location.reload();
});
$(userItem).on('click', selector + '.show_tags', function(event) {
var userInput = prompt("Enter multiple users separated by commas (e.g., Apple, Banana, Orange):", ignoreMembers.join(", "));
if (userInput === null) {
return false;
}
var itemsArray = userInput ? userInput.split(',').map(item => item.trim()) : [];
itemsArray = safeArray(itemsArray);
ignoreMembers = [...itemsArray];
GM_setValue("ignoreXenForoUsers", JSON.stringify(ignoreMembers));
GM_setValue("ignoreXenForoUsersDM", JSON.stringify(ignoreMembers));
alert("Ignored Users are : " + ignoreMembers.join(", "));
});
$(userItem).on('click', selector + '.reset_tags', function(event) {
ignoreTags = [...ignoreTagsOriginal];
GM_setValue("ignoreXenForoTags", JSON.stringify(ignoreTagsOriginal));
alert("Ignored Tags are : " + ignoreTags.join(", "));
window.location.reload();
});
$(userItem).on('click', selector + '.set_r', function(event) {
var userInput = prompt("Enter multiple users where you want ignore his reactions separated by commas (e.g., Apple, Banana, Orange):", ignoreReactionsMembers.join(", "));
if (userInput === null) {
return false;
}
var itemsArray = userInput ? userInput.split(',').map(item => item.trim()) : [];
itemsArray = safeArray(itemsArray);
ignoreReactionsMembers = [...itemsArray];
ignoreMembersDirectMessagesReactions = [...itemsArray];
GM_setValue("ignoreXenForoRUsers", JSON.stringify(ignoreReactionsMembers));
GM_setValue("ignoreXenForoRDMUsers", JSON.stringify(ignoreMembersDirectMessagesReactions));
alert("Ignored User Reactions are : " + ignoreReactionsMembers.join(", "));
window.location.reload();
});
$(userItem).on('click', selector + '.reset_r', function(event) {
ignoreReactionsMembers = [...ignoreReactionsMembersOriginal];
ignoreMembersDirectMessagesReactions = [...ignoreMembersDirectMessagesReactionsOriginal];
GM_setValue("ignoreXenForoRUsers", JSON.stringify(ignoreReactionsMembers));
GM_setValue("ignoreXenForoRDMUsers", JSON.stringify(ignoreMembersDirectMessagesReactions));
alert("Ignored User Reactions are : " + ignoreReactionsMembers.join(", "));
window.location.reload();
});
$(userItem).on('click', selectorOriginal + '.set_ranks_lc_r', function(event) {
var userInput = prompt("Enter multiple ranks where you want ignore this rank separated by commas (e.g., " + ignoreLCBannersOld.join(", ") + "):", ignoreLCBanners.join(", "));
if (userInput === null) {
return false;
}
var itemsArray = userInput ? userInput.split(',').map(item => item.trim()) : [];
itemsArray = safeArray(itemsArray);
ignoreLCBanners = [...itemsArray];
GM_setValue("ignoreLCRanks", JSON.stringify(ignoreLCBanners));
alert("Ignored Ranks are : " + ignoreLCBanners.join(", "));
window.location.reload();
});
$(userItem).on('click', selectorOriginal + '.reset_ranks_lc_r', function(event) {
ignoreLCBanners = [...ignoreLCBannersOriginal];
GM_setValue("ignoreLCRanks", JSON.stringify(ignoreLCBanners));
alert("Ignored Ranks are : " + ignoreLCBanners.join(", "));
window.location.reload();
});
}
});
});
}
}
}
}).cone("click", ignoreTagByClick);
}
});
$(".p-body-sidebar .contentRow-main a span").each(function( index ) {
var html = $(this).html().trim();
if (ignoreTags.includes(html)) {
//alert(html);
$(this).closest("li.block-row").remove();
}
}).cone("click", ignoreTagByClick);
};
window.addEventListener("load", function() {
ignoreF95Games();
});
$(document).ready(function() {
ignoreF95Games();
setInterval(ignoreF95Games, 1000);
});
}
} else if (isACHome || isULMFHome) {
if (ignoreTags.length > 0 || ignoreTagsByClick) {
function ignoreACGames() {
var ignoreString = ".forumStatsContainer .forumStats-main table.dataList-table tr.dataList-row";
var elements = document.querySelectorAll(ignoreString);
elements.forEach((userItem) => {
var ele2 = $(userItem).find(".dataList-textRow span[data-xf-init]");
//alert(ele2.html());
var ele = $(userItem).find(".dataList-textRow span[data-xf-init] span");
if (ele.length > 0) {
ele.each(function( index ) {
var html = $(this).html().trim();
if (html !== undefined) {
html = html.trim();
if (ignoreTags.includes(html)) {
$(userItem).remove();
}
}
}).cone("click", ignoreTagByClick);
}
});
$(".p-body-sidebar .contentRow-main a span, .p-body-sidebar .contentRow-main a span").each(function( index ) {
var html = $(this).html().trim();
if (ignoreTags.includes(html)) {
//alert(html);
$(this).closest("li.block-row").remove();
}
}).cone("click", ignoreTagByClick);
};
window.addEventListener("load", function() {
ignoreACGames();
});
$(document).ready(function() {
ignoreACGames();
setInterval(ignoreACGames, 1000);
});
}
}
if (homePage.startsWith("https://f95zone.to/sam/latest_alpha/")) {
function ignoreF95LuGames1() {
$(".resource-tile_label-wrap .resource-tile_label-wrap_left div,.resource-tile_label-wrap .resource-tile_label-wrap_right div, .resource-tile_tags span").each(function( index ) {
var html = $(this).text().trim();
//alert(html);
if (ignoreTags.includes(html)) {
//alert(html);
$(this).closest(".resource-tile").remove();
}
});
};
window.addEventListener("load", function() {
ignoreF95LuGames1();
});
$(document).ready(function() {
ignoreF95LuGames1();
setInterval(ignoreF95LuGames1, 1000);
});
} else if (homePage.startsWith("https://lewdcorner.com/latest-updates.php")) {
function ignoreLCLuGames1() {
$(".card__mediaBadges .lc-badge").each(function( index ) {
var html = $(this).html().trim();
if (ignoreTags.includes(html)) {
//alert(html);
$(this).closest(".lc-card").remove();
}
});
$(".lc-tags .lc-tag").each(function( index ) {
var html = $(this).html().trim();
//alert(html);
if (ignoreTags.includes(html)) {
//alert(html);
$(this).closest(".lc-card").remove();
}
});
};
window.addEventListener("load", function() {
ignoreLCLuGames1();
});
$(document).ready(function() {
ignoreLCLuGames1();
setInterval(ignoreLCLuGames1, 1000);
});
ignoreLCDonBanners();
} else if (homePage.startsWith("https://lewdcorner.com/latest-updatesv2")) {
function ignoreLCLuGames2() {
$(".lcCardMediaBadges .lcCardBadge").each(function( index ) {
var html = $(this).html().trim();
if (ignoreTags.includes(html)) {
//alert(html);
$(this).closest(".lcCardSlot").remove();
}
});
$(".lcCardRestingTagList button").each(function( index ) {
var html = $(this).html().trim();
if (ignoreTags.includes(html)) {
//alert(html);
$(this).closest(".lcCardSlot").remove();
}
});
$(".lcCardHoverDetails .lcCardHoverTags span").each(function( index ) {
var html = $(this).html().trim();
if (ignoreTags.includes(html)) {
//alert(html);
$(this).closest(".lcCardSlot").remove();
}
});
};
window.addEventListener("load", function() {
ignoreLCLuGames2();
});
$(document).ready(function() {
ignoreLCLuGames2();
setInterval(ignoreLCLuGames2, 1000);
});
ignoreLCDonBanners();
} else if (homePage.startsWith("https://azkoselscorner.com/index.php?forums/")) {
function ignoreACGames1() {
$(".thread-title-with-hover .prefix-label .label").each(function( index ) {
var html = $(this).html().trim();
if (ignoreTags.includes(html)) {
//alert(html);
$(this).closest(".thread-widget-slider").remove();
}
}).cone("click", ignoreTagByClick);
$("a.thread-title-with-hover[data-tag-list]").each(function (index ) {
var html = $(this).data("tagList");
//alert(html);
//alert(html);
ignoreTags.forEach((element, index) => {
var tag = "</xf:if>"+ element + "<xf:if is='$i'>";
var tag2 = "</xf:if>" + element;
if (html.indexOf(tag) !== -1 || html.indexOf(tag2) !== -1) {
$(this).closest(".thread-widget-slider").remove();
}
});
});
};
window.addEventListener("load", function() {
ignoreACGames1();
});
$(document).ready(function() {
ignoreACGames1();
setInterval(ignoreACGames1, 1000);
});
} else if (homePage.startsWith("https://lewdcorner.com/tags/") || homePage.startsWith("https://f95zone.to/tags/") || homePage.startsWith("https://azkoselscorner.com/index.php?tags/") || homePage.startsWith("https://allthefallen.moe/forum/index.php?tags/") || homePage.startsWith("https://ulmf.org/tags/")) {
function ignoreGamesX() {
$(".contentRow-minor .tagItem").each(function( index ) {
var html = $(this).html().trim();
html = html.replace("<em class=\"textHighlight\">","");
html = html.replace("<em class=\"textHighlight\">","");
html = html.replace("</em>","");
html = html.replace("</em>","");
html = html.trim();
//alert(html);
if (ignoreTags.includes(html)) {
//alert(html);
$(this).closest(".block-row").remove();
}
}).cone("click", ignoreTagByClick);
};
window.addEventListener("load", function() {
ignoreGamesX();
});
$(document).ready(function() {
ignoreGamesX();
setInterval(ignoreGamesX, 1000);
});
ignoreLCDonBanners();
} else if (homePage.startsWith("https://lewdcorner.com/forums/") || homePage.startsWith("https://f95zone.to/forums/") || homePage.startsWith("https://allthefallen.moe/forum/index.php?forums/") || homePage.startsWith("https://ulmf.org/forums/")) {
function ignoreGames1() {
$(".structItem-title a.labelLink span, .lcGameCard-mediaBadgeLeft span, .lcGameCard-hoverPanel .lcGameCard-tags .tagList .js-tagList a").each(function( index ) {
var html = $(this).html().trim();
//alert(html);
if (ignoreTags.includes(html)) {
//alert(html);
$(this).closest(".structItem--thread").remove();
}
}).cone("click", ignoreTagByClick);
};
window.addEventListener("load", function() {
ignoreGames1();
});
$(document).ready(function() {
ignoreGames1();
setInterval(ignoreGames1, 1000);
});
ignoreLCDonBanners();
} else if (!isHome) {
if (ignoreTags.length > 0 || ignoreTagsByClick) {
function ignoreGames2() {
var ignoreString = ".p-body-header .p-title-value a";
var elements = document.querySelectorAll(ignoreString);
elements.forEach((userItem) => {
var ele2 = $(userItem).find("span");
//alert(ele2.html());
var ele = $(userItem).find("span");
if (ele.length > 0) {
ele.each(function( index ) {
var html = $(this).html().trim();
if (html !== undefined) {
if (ignoreTags.includes(html)) {
$(".p-body-main").remove();
$(".p-body-pageContent").remove();
}
}
}).cone("click", ignoreTagByClick);
}
});
$(".p-description .tagList a").each(function( index ) {
var html = $(this).html().trim();
if (ignoreTags.includes(html)) {
$(".p-body-main").remove();
$(".p-body-pageContent").remove();
}
}).cone("click", ignoreTagByClick);
};
window.addEventListener("load", function() {
ignoreGames2();
});
$(document).ready(function() {
ignoreGames2();
setInterval(ignoreGames2, 1000);
});
}
var ignoreMembersOriginal = [...ignoreMembers];
var ignoreMembersDirectMessagesOriginal = [...ignoreMembersDirectMessages];
if (!hideUsersPermanent) {
GM_setValue("ignoreXenForoUsers", JSON.stringify(ignoreMembers));
GM_setValue("ignoreXenForoUsersDM", JSON.stringify(ignoreMembersDirectMessages));
}
var newIgnoreMembers = GM_getValue("ignoreXenForoUsers", JSON.stringify(ignoreMembers));
var newDirectIgnoreMembers = GM_getValue("ignoreXenForoUsersDM", JSON.stringify(ignoreMembersDirectMessages));
newIgnoreMembers = JSON.parse(newIgnoreMembers);
newDirectIgnoreMembers = JSON.parse(newDirectIgnoreMembers);
newIgnoreMembers = safeArray(newIgnoreMembers);
newDirectIgnoreMembers = safeArray(newDirectIgnoreMembers);
ignoreMembers = newIgnoreMembers;
ignoreMembersDirectMessages = newDirectIgnoreMembers;
var cssSelectors10 = [];
ignoreMembersDirectMessages.forEach((element, index) => {
cssSelectors10.push("article.message.message--conversationMessage.js-message[data-author='"+ element + "']");
});
var cssSelectors11 = [];
ignoreMembersDirectMessagesReactions.forEach((element, index) => {
cssSelectors11.push("article.message.message--conversationMessage.js-message[data-author='"+ element + "']");
});
var cssSelectors = [];
ignoreMembers.forEach((element, index) => {
cssSelectors.push("article.message.message--post.js-post[data-author='"+ element + "']");
});
var cssSelectors2 = [];
ignoreReactionsMembers.forEach((element, index) => {
cssSelectors2.push("article.message.message--post.js-post[data-author='"+ element + "']");
});
var cssSelectors3 = [];
ignoreLCBanners.forEach((element, index) => {
cssSelectors3.push("html body div.userBanner."+ element + ".message-userBanner");
});
var cssSelectors4 = [];
ignoreLCSignatureMembers.forEach((element, index) => {
cssSelectors4.push("article.message.message--post.js-post[data-author='"+ element + "']");
});
var cssSelectors40 = [];
ignoreLCSignatureDirectMessagesMembers.forEach((element, index) => {
cssSelectors40.push("article.message.message--conversationMessage.js-message[data-author='"+ element + "']");
});
var cssElement = cssSelectors.join(",");
var cssElement2 = cssSelectors2.join(",");
var cssElement3 = cssSelectors3.join(",");
var cssElement4 = cssSelectors4.join(",");
var cssElement40 = cssSelectors40.join(",");
var cssElement10 = cssSelectors10.join(",");
var cssElement11 = cssSelectors11.join(",");
var cssContent10 = cssElement10 + " { display: none !important; }";
var cssContent11 = cssElement11 + " .reactionsBar.js-reactionsList.is-active { display: none !important; }";
var cssContent = cssElement + " { display: none !important; }";
var cssContent2 = cssElement2 + " .reactionsBar.js-reactionsList.is-active { display: none !important; }";
var cssContent3 = ".reactionsBar.js-reactionsList.is-active { display: none !important; }";
var cssContent4 = "article.message.message--post.js-post[data-author] { display: none !important; }";
var cssContent5 = cssElement3 + " { display: none !important; }";
var cssContent6 = cssElement4 + " aside.message-signature { display: none !important; }";
var cssContent60 = cssElement40 + " aside.message-signature { display: none !important; }";
var cssContent7 = "article.message.message--conversationMessage.js-message[data-author] { display: none !important; }";
if (ignoreMembersDirectMessagesAll) {
GM_addStyle(cssContent7, "15");
}
if (ignoreMembersDirectMessages.length > 0) {
GM_addStyle(cssContent10, "13");
}
if (ignoreMembersDirectMessagesReactions.length > 0) {
GM_addStyle(cssContent11, "14");
}
if (ignoreLCSignatureMembers.length > 0) {
GM_addStyle(cssContent6, "10");
}
if (ignoreLCSignatureDirectMessagesMembers.length > 0) {
GM_addStyle(cssContent60, "100");
}
if (ignoreLCSignaturesAll) {
GM_addStyle("aside.message-signature { display: none !important; }", "11");
}
if (ignoreMembers.length > 0) {
GM_addStyle(cssContent, "1");
}
if (ignoreReactionsMembers.length > 0) {
GM_addStyle(cssContent2, "2");
}
if (ignoreMembersAll) {
GM_addStyle(cssContent4, "4");
}
if (ignoreReactionsAll || ignoreMembersDirectMessagesReactionsAll) {
GM_addStyle(cssContent3, "3");
}
if (ignoreLCBanners.length > 0) {
GM_addStyle(cssContent5, "5");
}
if (ignoreLCBadges) {
GM_addStyle("div.featuredBadges.featuredBadges--message { display: none !important; }", "6");
}
if (ignoreLCWhiteSpaceSoMuchYouCan) {
GM_addStyle("div.st-years-of-service, .xentr-message-container .xentr-slider-nav { padding: 0px !important; margin: 0px !important; }", "7");
GM_addStyle("div.st-years-of-service { margin-top: 5px !important; }", "9");
GM_addStyle("dl.pairs.pairs--justified { padding: 0 5px 0px 5px !important; }", "8");
}
ignoreLCDonBanners();
if (addIgnoreButton) {
var isLC = homePage.startsWith("https://lewdcorner.com/");
GM_addStyle(".message-attribution-main .set_r,.message-attribution-main .reset_r,.message-attribution-main .ignore_xenforo_user,.message-attribution-main .ignore_custom_member,.message-attribution-main .reset_custom_member,.message-attribution-main .add_tags,.message-attribution-main .show_tags,.message-attribution-main .reset_tags { display: inline-block !important; font-size: 12px !important; max-height: 0px !important; color: unset !important; }", "1200");
GM_addStyle('body[data-template="thread_view"] .block--messages article.message.message--post .message-attribution a { min-height: 0px !important; font-size: 12px !important; color: unset;}', "1201");
GM_addStyle('.message-attribution-main .reset_c_sep { font-size: 12px !important; }', "1202");
GM_addStyle('body[data-template="thread_view"] .block--messages article.message.message--post .message-attribution { font-size: 12px !important; }', "1203");
GM_addStyle('a.reset_ranks_lc_r, a.set_ranks_lc_r { font-size: 12px !important; display: block !important; padding: 0px !important; margin: 0px !important; line-height: 12px !important; color: #1472d7}', "1204");
window.addEventListener("load", function() {
$("html body div.userBanner.message-userBanner").each(function (index ) {
var classes = $(this).attr('class');
var classesArray = classes.split(/\s+/);
var rank = classesArray[1];
if (homePage.startsWith("https://allthefallen.moe/") || homePage.startsWith("https://f95zone.to/")) {
for (const element of classesArray) {
if (element === "Moderator") {
rank = element;
}
if (element.startsWith("userBanner--")) {
rank = element;
break;
}
}
}
$(this).on("click", function(event) {
var answer = confirm("Do you want ignore the rank " + rank + " ?");
if (answer) {
if (!ignoreLCBanners.includes(rank)) {
ignoreLCBanners.push(rank);
GM_setValue("ignoreLCRanks", JSON.stringify(ignoreLCBanners));
alert("rank " + rank + " is ignored");
window.location.reload();
}
}
});
});
var elements = document.querySelectorAll("article.message[data-author]");
elements.forEach((userItem) => {
var author = $(userItem).data("author");
$(userItem).find("section.message-user").each(function() {
var element = $(this).attr("itemid");
if (element === undefined) {
var ele = $(this).find(".message-userDetails .message-name a");
if (ele.length) {
element = ele.attr("href");
}
}
if (element !== undefined) {
var addedElementOriginal = this;
var addedElement = this;
addedElement = $(userItem).find(".message-attribution .message-attribution-main");
$(addedElement).append("<span class=\"reset_c_sep\"> | </span><a class=\"ignore_xenforo_user\" href=\"" + element + "ignore\">Ignore User</a>");
if (useSameId) {
$(addedElement).append("<span class=\"reset_c_sep\"> | </span><a class=\"ignore_custom_member\" data-author=\""+author+"\" href=\"#\">Hide User</a>");
$(addedElement).append("<span class=\"reset_c_sep\"> | </span><a class=\"reset_custom_member\" href=\"#\">Reset Ignore Users</a>");
$(addedElement).append("<span class=\"reset_c_sep\"> | </span><a class=\"reset_tags\" href=\"#\">Reset Ignore Tags</a>");
$(addedElement).append("<span class=\"reset_c_sep\"> | </span><a class=\"reset_r\" href=\"#\">Reset Ignore Reactions</a>");
$(addedElement).append("<span class=\"reset_c_sep\"> | </span><a class=\"show_tags\" href=\"#\">Set Ignore Users</a>");
$(addedElement).append("<span class=\"reset_c_sep\"> | </span><a class=\"add_tags\" href=\"#\">Set Ignore Tags</a>");
$(addedElement).append("<span class=\"reset_c_sep\"> | </span><a class=\"set_r\" href=\"#\">Set Ignore Reactions</a>");
$(addedElementOriginal).append("<a class=\"reset_ranks_lc_r\" href=\"#\">Reset Ignored Ranks</a>");
$(addedElementOriginal).append("<a class=\"set_ranks_lc_r\" href=\"#\">Set Ignored Ranks</a>");
}
}
});
if (useSameId) {
var selector = "section.message-user ";
var selectorOriginal = selector;
selector = ".message-attribution .message-attribution-main a";
$(userItem).on('click', selector + '.ignore_custom_member', function(event) {
event.preventDefault();
var meAuthor = $(this).data("author");
if (!ignoreMembers.includes(meAuthor)) {
ignoreMembers.push(meAuthor);
}
if (!ignoreMembersDirectMessages.includes(meAuthor)) {
ignoreMembersDirectMessages.push(meAuthor);
}
GM_setValue("ignoreXenForoUsers", JSON.stringify(ignoreMembers));
GM_setValue("ignoreXenForoUsersDM", JSON.stringify(ignoreMembersDirectMessages));
GM_addStyle("article.message.message--conversationMessage.js-message[data-author=\""+meAuthor+"\"] { display: none !important; }", "1400");
GM_addStyle("article.message.message--post.js-post[data-author=\""+meAuthor+"\"] { display: none !important; }", "1401");
});
$(userItem).on('click', selector + '.reset_custom_member', function(event) {
event.preventDefault();
GM_setValue("ignoreXenForoUsers", JSON.stringify(ignoreMembersOriginal));
GM_setValue("ignoreXenForoUsersDM", JSON.stringify(ignoreMembersDirectMessagesOriginal));
newIgnoreMembers = GM_getValue("ignoreXenForoUsers", JSON.stringify(ignoreMembersOriginal));
newDirectIgnoreMembers = GM_getValue("ignoreXenForoUsersDM", JSON.stringify(ignoreMembersDirectMessagesOriginal));
newIgnoreMembers = JSON.parse(newIgnoreMembers);
newDirectIgnoreMembers = JSON.parse(newDirectIgnoreMembers);
ignoreMembers = newIgnoreMembers;
ignoreMembersDirectMessages = newDirectIgnoreMembers;
window.location.reload();
});
$(userItem).on('click', selector + '.add_tags', function(event) {
var userInput = prompt("Enter multiple tags separated by commas (e.g., Apple, Banana, Orange):", ignoreTags.join(", "));
if (userInput === null) {
return false;
}
var itemsArray = userInput ? userInput.split(',').map(item => item.trim()) : [];
itemsArray = safeArray(itemsArray);
ignoreTags = [...itemsArray];
GM_setValue("ignoreXenForoTags", JSON.stringify(ignoreTags));
alert("Ignored Tags are : " + ignoreTags.join(", "));
window.location.reload();
});
$(userItem).on('click', selector + '.show_tags', function(event) {
var userInput = prompt("Enter multiple users separated by commas (e.g., Apple, Banana, Orange):", ignoreMembers.join(", "));
if (userInput === null) {
return false;
}
var itemsArray = userInput ? userInput.split(',').map(item => item.trim()) : [];
itemsArray = safeArray(itemsArray);
ignoreMembers = [...itemsArray];
GM_setValue("ignoreXenForoUsers", JSON.stringify(ignoreMembers));
GM_setValue("ignoreXenForoUsersDM", JSON.stringify(ignoreMembers));
alert("Ignored Users are : " + ignoreMembers.join(", "));
});
$(userItem).on('click', selector + '.reset_tags', function(event) {
ignoreTags = [...ignoreTagsOriginal];
GM_setValue("ignoreXenForoTags", JSON.stringify(ignoreTagsOriginal));
alert("Ignored Tags are : " + ignoreTags.join(", "));
window.location.reload();
});
$(userItem).on('click', selector + '.set_r', function(event) {
var userInput = prompt("Enter multiple users where you want ignore his reactions separated by commas (e.g., Apple, Banana, Orange):", ignoreReactionsMembers.join(", "));
if (userInput === null) {
return false;
}
var itemsArray = userInput ? userInput.split(',').map(item => item.trim()) : [];
itemsArray = safeArray(itemsArray);
ignoreReactionsMembers = [...itemsArray];
ignoreMembersDirectMessagesReactions = [...itemsArray];
GM_setValue("ignoreXenForoRUsers", JSON.stringify(ignoreReactionsMembers));
GM_setValue("ignoreXenForoRDMUsers", JSON.stringify(ignoreMembersDirectMessagesReactions));
alert("Ignored User Reactions are : " + ignoreReactionsMembers.join(", "));
window.location.reload();
});
$(userItem).on('click', selector + '.reset_r', function(event) {
ignoreReactionsMembers = [...ignoreReactionsMembersOriginal];
ignoreMembersDirectMessagesReactions = [...ignoreMembersDirectMessagesReactionsOriginal];
GM_setValue("ignoreXenForoRUsers", JSON.stringify(ignoreReactionsMembers));
GM_setValue("ignoreXenForoRDMUsers", JSON.stringify(ignoreMembersDirectMessagesReactions));
alert("Ignored User Reactions are : " + ignoreReactionsMembers.join(", "));
window.location.reload();
});
$(userItem).on('click', selectorOriginal + '.set_ranks_lc_r', function(event) {
var userInput = prompt("Enter multiple ranks where you want ignore this rank separated by commas (e.g., " + ignoreLCBannersOld.join(", ") + "):", ignoreLCBanners.join(", "));
if (userInput === null) {
return false;
}
var itemsArray = userInput ? userInput.split(',').map(item => item.trim()) : [];
itemsArray = safeArray(itemsArray);
ignoreLCBanners = [...itemsArray];
GM_setValue("ignoreLCRanks", JSON.stringify(ignoreLCBanners));
alert("Ignored Ranks are : " + ignoreLCBanners.join(", "));
window.location.reload();
});
$(userItem).on('click', selectorOriginal + '.reset_ranks_lc_r', function(event) {
ignoreLCBanners = [...ignoreLCBannersOriginal];
GM_setValue("ignoreLCRanks", JSON.stringify(ignoreLCBanners));
alert("Ignored Ranks are : " + ignoreLCBanners.join(", "));
window.location.reload();
});
}
});
});
}
}