Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

1395350 Posts in 67256 Topics- by 60323 Members - Latest Member: Summer456739

September 21, 2021, 07:12:35 AM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsCommunityTownhallForum IssuesHide user's posts?
Pages: [1]
Print
Author Topic: Hide user's posts?  (Read 2223 times)
Nillo
Level 10
*****


Raunchy Raccoon


View Profile
« on: October 26, 2013, 01:24:19 PM »

I tried adding someone to my ignore list but I can still see their posts. Is there a script or some other function that lets me hide posts from a user?

Preferably I would like them to be completely hidden i.e. not show up as "this post is hidden" or anything like that. If the user makes a new topic then I would like it if the topic was invisible as well.
Logged

My finished games: Griddy RPG
My current project: SummonerRL
On hold: Griddy Heroes
poe
Guest
« Reply #1 on: October 26, 2013, 02:39:34 PM »

someone posted a greasemonkey script for this in the level 10 board i think
Logged
Christian Knudsen
Level 10
*****



View Profile WWW
« Reply #2 on: October 26, 2013, 02:53:50 PM »

ignore_users.user.js

Code:
// ==UserScript==
// @name           Ignore TIGSource Users
// @namespace      http://forums.tigsource.com
// @description    Removes posts made by any users you specify. Slight modification to Dacke's code.
// @include        http://forums.tigsource.com/index.php?topic=*
// ==/UserScript==

//replace these with the users you wish to ignore.
var ignoredUsers = ["xxx"];

for (var x = 0; x < ignoredUsers.length; x++){
    var pathExpression = "//a[@title='View the profile of " + ignoredUsers[x] + "']/../../../../../../../../../../..";
   var posts = document.evaluate(pathExpression, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
      for (var i = posts.snapshotLength - 1; i >= 0; i--) {
      var currentSnap = posts.snapshotItem(i);
      currentSnap.parentNode.removeChild(currentSnap);
   }
}

Logged

Laserbrain Studios
Currently working on Hidden Asset (TIGSource DevLog)
Nillo
Level 10
*****


Raunchy Raccoon


View Profile
« Reply #3 on: October 26, 2013, 03:11:11 PM »

Thanks, this works great. I can still see the topics that the user has created but that's not really a big deal.
Logged

My finished games: Griddy RPG
My current project: SummonerRL
On hold: Griddy Heroes
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic