I never wrote extensions for Chrome, but I got bored



If you know the style of the header and you don't need any more details, here is the link to the repository .



If you are wondering what it is and why I take away space in the feed from good authors - then a little context will be under the cut.



, , . , , , . , , , . , ( ), , "" . , . , . " !" , . , , .



- .



, , . , , . , , .



. - , . , .



( ) . , , , . . , . . , . , " " . , , , .



, - 4 3 UI.



β€” https://github.com/Drag13/HabrSanitizer β€” . , , - .



. chrome.storage.sync.set({ settings }) . , storage. , Habr , sanitizer.js storage , .



    function searchByAuthorName(author) {
        const [...allArticles] = document.getElementsByTagName('article');
        const articlesFromAuthour = allArticles.filter((article) =>
            equalsCaseInsensetive(article.querySelector(`.user-info__nickname`)?.textContent, author)
        );

        return articlesFromAuthour;
    }


, , , .



- . , .



, .



, .



.



  • chrome://extensions/
  • ( )
  • src


Extension options:



I wanted to do this for at least six months



, . , :





, , , . - ( - ). . β€” issue.



, - .



.



.. , , .



... β€” . .




All Articles