📜 ⬆️ ⬇️

Natural Geektimes - we make space cleaner

While reading Geektimes, I constantly wanted to turn off the editors, because they make a regular admi or something similar from a self-regulating community with freely arising articles.

After a couple of days ago on the main page I saw the post “ Shkolnik shared a nude photo from the teacher’s phone, for which she was fired ” the decision had almost come - I would never come here again, another resource is in negative.

The reason for this decision, I think everyone understands - very few people will like forced feeding with such information slag. The administration does not want to give the ability to configure and disable editors - this is her right. My right to leave the resource.
')
However, thanks to lexasss , there was a solution for customizing the tape, which I want to share. Again, the idea and advice came from lexasss , I just publish it for those who, like me, want to turn off the display of posts from certain users.





Update from 2018 - I recommend using the Keyten script published here .

Remove posts users 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;
    }
  }
}



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

, . .

Firefox



GreaseMonkey, , :

// ==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;
    }
  }
}




Chrome ( , , , , , .

lexasss !

2018 — Keyten .

Source: https://habr.com/ru/post/391233/


All Articles