ใใใใผใฎในใฟใคใซใใใใฃใฆใใฆใใใไปฅไธใฎ่ฉณ็ดฐใๅฟ ่ฆใชใๅ ดๅใฏใใใใซใชใใธใใชใธใฎใชใณใฏใใใใพใใ
ใใใไฝใงใใใใใใใฆใชใ็งใๅชใใ่่ ใใใใฃใผใใฎในใใผในใๅฅชใใฎใ็ๅใซๆใฃใฆใใใชใใๅฐใใณใณใใญในใใใซใใใใใพใใ
, , . , , , . , , , . , ( ), , "" . , . , . " !" , . , , .
- .
, , . , , . , , .
. - , . , .
( ) . , , , . . , . . , . , " " . , , , .
, - 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;
}
, , , .
- . , .
, .
, .
.
Extension options:
, . , :
- โ "activeTab", "storage"
- "https://habr.com/*"
- 0 , node_modules, .
, , , . - ( - ). . โ issue.
, - .
.
.. , , .
... โ . .