XenForum Ignore Members / Threads / Everything

  • Thread starter Thread starter xXxLunaxXx
  • Start date Start date
  • Replies Replies 20
  • Views Views 406
0.00 star(s) No ratings yet
Man, if you actually made an ignore tag, I might actually die of happiness.

Also, thanks for all the work that you do. I swear I see you everywhere putting in amazing work.
If you can, yes, please
You can update the script also here



Exclude an unlimited number of tags

1. Added ignore Tags for LC LU 1 & 2

http://lewdcorner.com/latest-updates.php

https://lewdcorner.com/latest-updatesv2

2. Added ignore Tags for LU of F95



3. Added Ignore Tags support for all other sections

4. Added support for F95, LC, AC, ULMF, and ATF

What is New?

You’re all familiar with the problem of being able to exclude only a limited number of tags... And the inability to filter by tags like DAZ, Koikatsu, Active, Other, Hand-Drawn, and so on. That’s all been resolved now; from this point on, you can use all the tags you already know from LU, as well as tags like DAZ, Koikatsu, and so on.


For user this line is important

Code:
var ignoreTags = ["VN", "DAZ", "Hand Drawn", "Ren'Py", "Complete", "AI", "RPGM", "ports", "Hiatus", "Abondened", "Loli", "animated", "2d game", "sleep sex", "RPG", "Patreon", "Active"];

Code:
// ==UserScript==
// @name         Lewdcorner/Azkosels Corner/F95zone/ULMF/ATF Ignore Members And More V3.0
// @namespace    http://tampermonkey.net
// @version      3.8
// @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/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 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 = ["t1", "t2", "t3", "t4", "t5", "t6", "Registered", "Lewd", "VIPplus", "UwU", "Godly", "Donator", "Donator2"];
var ignoreLCDonationBanners = true;
var ignoreLCBadges = true;
var ignoreLCSignaturesAll = false;
var ignoreLCWhiteSpaceSoMuchYouCan = false;


// ------------------------------------------------

// CODE DONT'T TOUCH THIS PLEASE

// -----------------------------------------------

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;

if (isATFHome) {
    if (ignoreTags.length > 0) {
       function ignoreATFGames() {
        $(".p-body-sidebar .contentRow-main a span.label").each(function( index ) {
            var html = $(this).html();
            if (ignoreTags.includes(html)) {
                //alert(html);
                $(this).closest("li.block-row").remove();
            }
        });
       };
       window.addEventListener("load", function() {
         ignoreATFGames();
       });
       $(document).ready(function() {
         ignoreATFGames();
         setInterval(ignoreATFGames, 1000);
       });
  }
} else if (isLCHome) {
    if (ignoreTags.length > 0) {
       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 .label");
            if (ele.length > 0) {
              ele.each(function( index ) {
                 var html = $(this).html();
                 if (html !== undefined) {
                    if (ignoreTags.includes(html)) {
                       $(userItem).remove();
                    }
                 }
              });
           }
        });
        $(".p-body-sidebar .contentRow-main a span.label").each(function( index ) {
            var html = $(this).html();
            if (ignoreTags.includes(html)) {
                //alert(html);
                $(this).closest("li.block-row").remove();
            }
        });
       };
       window.addEventListener("load", function() {
         ignoreLCGames();
       });
       $(document).ready(function() {
         ignoreLCGames();
         setInterval(ignoreLCGames, 1000);
       });
  }
} else if (isF95Home) {
    if (ignoreTags.length > 0) {
      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();
                 if (html !== undefined) {
                    if (ignoreTags.includes(html)) {
                       $(userItem).remove();
                    }
                 }
              });
           }
        });
        $(".p-body-sidebar .contentRow-main a span.label").each(function( index ) {
            var html = $(this).html();
            if (ignoreTags.includes(html)) {
                //alert(html);
                $(this).closest("li.block-row").remove();
            }
        });
     };
     window.addEventListener("load", function() {
        ignoreF95Games();
     });
     $(document).ready(function() {
        ignoreF95Games();
        setInterval(ignoreF95Games, 1000);
     });
  }
} else if (isACHome || isULMFHome) {
    if (ignoreTags.length > 0) {
      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] .label,.aiprefix");
            if (ele.length > 0) {
              ele.each(function( index ) {
                 var html = $(this).html();
                 if (html !== undefined) {
                    html = html.trim();
                    if (ignoreTags.includes(html)) {
                       $(userItem).remove();
                    }
                 }
              });
           }
       });
       $(".p-body-sidebar .contentRow-main a span.label, .p-body-sidebar .contentRow-main a span.aiprefix").each(function( index ) {
            var html = $(this).html();
            if (ignoreTags.includes(html)) {
                //alert(html);
                $(this).closest("li.block-row").remove();
            }
       });
     };
     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").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);
    });
} 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();
            }
        });
    };
    window.addEventListener("load", function() {
        ignoreLCLuGames2();
    });
    $(document).ready(function() {
        ignoreLCLuGames2();
        setInterval(ignoreLCLuGames2, 1000);
    });
} 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();
            }
        });
    };
    window.addEventListener("load", function() {
        ignoreACGames1();
    });
    $(document).ready(function() {
        ignoreACGames1();
        setInterval(ignoreACGames1, 1000);
    });
} 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.label, .lcGameCard-mediaBadgeLeft span.label").each(function( index ) {
            var html = $(this).html().trim();
            if (ignoreTags.includes(html)) {
                //alert(html);
                $(this).closest(".structItem--thread").remove();
            }
        });
    };
    window.addEventListener("load", function() {
        ignoreGames1();
    });
    $(document).ready(function() {
        ignoreGames1();
        setInterval(ignoreGames1, 1000);
    });
} else if (!isHome) {

   if (ignoreTags.length > 0) {
       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();
                    }
                 }
              });
           }
        });
        $(".p-description .tagList a").each(function( index ) {
            var html = $(this).html().trim();
            if (ignoreTags.includes(html)) {
                $(".p-body-main").remove();
                $(".p-body-pageContent").remove();
            }
        });
       };
       window.addEventListener("load", function() {
          ignoreGames2();
       });
       $(document).ready(function() {
          ignoreGames2();
          setInterval(ignoreGames2, 1000);
       });
  }

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);

ignoreMembers = newIgnoreMembers;
ignoreMembersDirectMessages = newDirectIgnoreMembers;

var useSameId = true;

function GM_addStyle(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);
}

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("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");
}

if (ignoreLCDonationBanners) {
    GM_addStyle(".jblcDonateNotice, .stfrtDonateBubble { display: none !important; }", "12");
}

if (addIgnoreButton) {
window.addEventListener("load", function() {
    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) {
               $(this).append("<a href=\"" + element + "ignore\"> Ignore " + author + "</a><br>");
               if (useSameId) {
                  $(this).append("<a class=\"ignore_custom_member\" data-author=\""+author+"\" href=\"#\"> Hide " + author + "</a><br>");
                  $(this).append("<a class=\"reset_custom_member\" href=\"#\"> Reset All</a>");
               }
            }
       });
       if (useSameId) {
          $(userItem).on('click', 'section.message-user .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', 'section.message-user .reset_custom_member', function(event) {
            event.preventDefault();
            GM_setValue("ignoreXenForoUsers", JSON.stringify(ignoreMembers));
            GM_setValue("ignoreXenForoUsersDM", JSON.stringify(ignoreMembersDirectMessages));
            newIgnoreMembers = JSON.parse(newIgnoreMembers);
            newDirectIgnoreMembers = JSON.parse(newDirectIgnoreMembers);
            ignoreMembers = newIgnoreMembers;
            ignoreMembersDirectMessages = newDirectIgnoreMembers;
         });
       }
    });
});
}
}
 
Last edited:
Back
Top Bottom