• The site has now migrated to Xenforo 2. If you see any issues with the forum operation, please post them in the feedback thread.
  • An addendum to Rule 3 regarding fan-translated works of things such as Web Novels has been made. Please see here for details.
  • The issue with logging in with email addresses has been resolved.
  • Due to issues with external spam filters, QQ is currently unable to send any mail to Microsoft E-mail addresses. This includes any account at live.com, hotmail.com or msn.com. Signing up to the forum with one of these addresses will result in your verification E-mail never arriving. For best results, please use a different E-mail provider for your QQ address.
  • For prospective new members, a word of warning: don't use common names like Dennis, Simon, or Kenny if you decide to create an account. Spammers have used them all before you and gotten those names flagged in the anti-spam databases. Your account registration will be rejected because of it.
  • Since it has happened MULTIPLE times now, I want to be very clear about this. You do not get to abandon an account and create a new one. You do not get to pass an account to someone else and create a new one. If you do so anyway, you will be banned for creating sockpuppets.
  • Due to the actions of particularly persistent spammers and trolls, we will be banning disposable email addresses from today onward.
  • The rules regarding NSFW links have been updated. See here for details.

Block user in specific threads and/or subforums

snthsnth

Versed in the lewd.
Joined
Jan 8, 2015
Messages
2,481
Likes received
15,488
Now that we're on Xen2, is it possible to have the option to block a user only on specific threads or subforums? There's a couple people I find annoying in General and Rants, but otherwise would prefer to see what they're saying in Creative Writing and Questing.
 
It would be a lovely feature, but I don't think it is implemented in XenForo.
I actually did write a greasemonkey script that did that some years ago, matching url paths.
I could try and dig it out, but you will have to use a browser that supports greasemonkey and similar extensions.
 
Now that we're on Xen2, is it possible to have the option to block a user only on specific threads or subforums? There's a couple people I find annoying in General and Rants, but otherwise would prefer to see what they're saying in Creative Writing and Questing.
It's all or nothing~
 
Now that we're on Xen2, is it possible to have the option to block a user only on specific threads or subforums? There's a couple people I find annoying in General and Rants, but otherwise would prefer to see what they're saying in Creative Writing and Questing.
Here you go, simple greasemonkey script to remove the posts of users (add/remove from array tikvenici) and filters on the basis of locations(array blacklist_loc).
Does so only for something on the @include path https://forum.questionablequesting.com/threads/* haven't tested it with the other domain or on mobile.
In theory any compatible user script add-on similar to greasemonkey should work, check the list here.
I used your username and picked a random rants thread where you posted. :D
script-works.png


JavaScript:
// ==UserScript==
// @name     Unnamed Script 342122
// @include https://forum.questionablequesting.com/threads/*
// @version  1
// @grant    none
// ==/UserScript==
(function() {
  'use strict';
  var blacklist_loc = ["Rants","General"]
 var tikvenici = ["snthsnth"]
 var loc = Array.from(document.getElementsByClassName("p-breadcrumbs")[1].getElementsByTagName("li")).slice(-1)[0].innerText.trim();

const dagoeba = new MutationObserver((mutations) => {
  if(blacklist_loc.includes(loc)) {
  Array.from(document.getElementsByTagName("article")).forEach(element => {
   if(element.getAttribute("data-author")) {
   if (tikvenici.includes(element.getAttribute("data-author"))){
     element.remove();
   }
   }
});
  }
 
});

const govno = {childList:true,subtree:true};
dagoeba.observe(document.body, govno);
})();
 

Users who are viewing this thread

Back
Top