Natural Geektimes - make space cleaner

Reading Geektimes, I constantly wanted to turn off the editors, because they make a self-regulating community with freely emerging articles the next admin or something like that.

After a couple of days ago on the main page I saw the post "A student shared a nude photo from a teacher's phone, for which she was firedThe decision has almost come - I will never come here again, another resource in the negative.

I think everyone understands the reason for this decision - few people will like force-feeding such informational slag. The administration does not want to give the ability to configure and disable editors - this is their right. My right to leave the resource.

However, thanks lexass, there was a solution for self-configuring the ribbon, which I want to share. Again, the idea and advice came from lexass, I'm just posting this for those who, like me, want to disable the display of posts from certain users.

Natural Geektimes - make space cleaner

Update from 2018 - I recommend using the script from Keyten ΠΎΠΏΡƒΠ±Π»ΠΈΠΊΠΎΠ²Π°Π½Π½Ρ‹ΠΉ here.

Delete user posts in Chrome

So, to remove editors in Chrome, you need to install the Tampermonkey BETA extension, create a new script and put the code there

// ==UserScript==
// @name        Habr editor blocker
// @description Hides articles that were posted by certain authors
// @match     https://geektimes.ru/*
// @version     1
// @grant       none
// ==/UserScript==
// @namespace    http://tampermonkey.net/

var authors = [
  'alizar',
  'marks',
  'ivansychev',
  'ragequit',
  'SLY_G',
];

var posts = document.querySelectorAll('.post');
for (var idx = 0; idx < posts.length; ++idx) {
  var post = posts[idx];
  for (var i = 0; i < authors.length; ++i) {
    var selector = '.post-author__link[href$="/' + authors[i] + '/"]';
    var blockedAuthor = post.querySelector(selector);
    if (blockedAuthor) {
      post.style.display = 'none';
      break;
    }
  }
}

Where
'alizar',
'marks',
'ivansychev',
'ragequit',
'SLY_G',

this is a list of users whose posts will not be displayed. You can customize the list yourself.

Delete user posts in Firefox

Install GreaseMonkey, create a new script, copy this into it:

// ==UserScript==
// @name        Habr editor blocker
// @description Hides articles that were posted by certain authors
// @include     https://geektimes.ru/*
// @version     1
// @grant       none
// ==/UserScript==

var authors = [
  'alizar',
  'marks',
  'ivansychev',
  'ragequit',
  'SLY_G',
];

var posts = document.querySelectorAll('.post');
for (var idx = 0; idx < posts.length; ++idx) {
  var post = posts[idx];
  for (var i = 0; i < authors.length; ++i) {
    var selector = '.post-author__link[href$="/' + authors[i] + '/"]';
    var blockedAuthor = post.querySelector(selector);
    if (blockedAuthor) {
      post.style.display = 'none';
      break;
    }
  }
}

Other browsers

If the browser uses the Chrome platform (for example, Yandex browser, then the instructions for Chrome are executed there, you just need to go to the store on the plugin page , install it, and hooray, everything works.

Thanks again lexass and happy holidays to all!

Update from 2018 - I recommend using the script from Keyten ΠΎΠΏΡƒΠ±Π»ΠΈΠΊΠΎΠ²Π°Π½Π½Ρ‹ΠΉ here.

Source: habr.com

Add a comment