How to block users in search results [Userscript]

News for this website will be posted here. Mostly Technical.
Forum rules
This forum is for technical discussion regarding the portal and vore itself.

Generally speaking, if you have something that needs moderator attention, you should simply Private message Eka. That includes any bug report, error report, violation report, outage report, suggestion, feature request. Etc.

Most topics will be locked as soon as they are acknowledged. Due to the nature that not many people can do anything regarding a technical issue. In that case, if you need something unlocked for any reason. Feel free to message Eka directly.

How to block users in search results [Userscript]

Postby hernextmeal » Wed Aug 15, 2018 3:13 am

Saw this thread and decided to write a userscript to do what they were asking. You'll need an extension such as ViolentMonkey and a recent browser version (with support for ECMAScript 6 for..of and includes) to be able to use it.

Code: Select all
// ==UserScript==
// @name Profile Blocker
// @namespace Violentmonkey Scripts
// @match *://aryion.com/g4/*
// @grant none
// ==/UserScript==
var blockedProfiles = ["https://aryion.com/g4/user/Some_Profile", "https://aryion.com/g4/user/Some_Profile"] //Edit these to the URLs of the profiles of people you want to block

document.addEventListener("load", function(){
  for(galleryItem of document.getElementsByClassName('gallery-item')){
    for(userLink of galleryItem.getElementsByClassName('user-link')){
      if(blockedProfiles.includes(userLink.href)) {
        galleryItem.style.display = "none"
      }
    }
  }
})
User avatar
hernextmeal
Intermediate Vorarephile
 
Posts: 404
Joined: Fri Nov 15, 2013 9:10 pm

Re: How to block users in search results [Userscript]

Postby AlluringPredation » Wed Aug 15, 2018 6:03 am

https://github.com/Petschko/EkasPortalDisinterestFilter

Or use this one made by WHTB and improved by Tigercloud.
Attachments
Example.png
Discord for artists and those who commission them! https://discord.com/invite/F3UDqqAx53
User avatar
AlluringPredation
Participator
 
Posts: 293
Joined: Fri Mar 27, 2015 11:10 am

Re: How to block users in search results [Userscript]

Postby FennekoFawkz » Wed Aug 15, 2018 10:04 pm

Or give mine a whirl. My Javascript skills are rusty as hell but I think it's in a usable state now.

https://github.com/FennekoFawkz/Ekas-Portal-Blacklist

Hides users and tags completely from tag search/latest update pages (no more ugly blacklist banners), but only hides users from watched submissions (no easily available tag data there). Has a quick on/off toggle up next to the settings link, and there are block buttons on userpages, or you can copy/paste the names into settings.

Block buttons for next to each username are in the works, but like I said, R U S T Y. It's slow going. Feedback's very welcome at this point.
User avatar
FennekoFawkz
New to the forum
 
Posts: 1
Joined: Wed Aug 15, 2018 12:09 am

Re: How to block users in search results [Userscript]

Postby kfahchan » Sun Sep 16, 2018 11:03 am

Has nobody written one of these for tags? I'm too lazy to dissect the differing html on each search page!
kfahchan
New to the forum
 
Posts: 5
Joined: Sun Mar 15, 2015 7:40 am


Return to Technical stuff