Natural Geektimes - Making Space Cleaner

    While reading Geektimes, I constantly wanted to disable editors, because they make the next admin or something similar out of a self-regulating community with freely emerging articles.

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

    I think everyone understands the reason for this decision - few people like the forced feeding of such information slag. The administration does not want to give the opportunity to configure and disable editors - this is its right. My right to leave the resource.

    However, thanks lexasss, there was a solution for self-tuning the tape, which I want to share. I repeat, the idea and advice came from lexasss , I only publish this for those who like me want to disable the display of posts from certain users.





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

    We delete posts of 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;
        }
      }
    }
    


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

    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 there:

    // ==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, the Yandex browser, then the instructions for Chrome are followed, you just need to go to the store on the plugin page , install it, and cheers, everything works.

    Thanks again to lexasss and all the good holidays!

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

    Also popular now: