No Coronavirus 的评价
No Coronavirus 作者: Daggron
8 条评价
- 评分 5 / 5来自 Sarhan Dadier, 5 年前Отличное дополнение. Мне тоже надоедо видеть информацию о вирусе на всех сайтах. Автору спасибо!
- 评分 3 / 5来自 Display Name *, 5 年前
- 评分 1 / 5来自 Firefox 用户 11323234, 5 年前Works okay, but it only censors the word, it doesn't do anything else than that. It also doesn't censor covid-19 and it also has been blocking words that start with co, like "community" or "cover". Only would recommend if you have a weird fear of the word; coronavirus.
开发者回应
发布于 5 年前Hey, We have added new testcases and the new version is updated now it blocks covid-19 and this bug is fixed - 评分 5 / 5来自 Koob parcs, 5 年前Excellent addon, a simple JavaScript that replace Corona related words by ░░█▒ █▒▒ █▓▓░.
Here is the code source from https://github.com/Daggron/No-coronavirus :
replaceText(document.body);
function replaceText(element) {
if (element.hasChildNodes()) {
element.childNodes.forEach(replaceText)
} else if (element.nodeType === Text.TEXT_NODE) {
element.textContent = element.textContent.replace(/coronavirus|CoV-2|[cC][oO][vV][iI][dD]\-19|[sS][aA][rR][sS]|[cC][oO][rR][oO][nN][aA][vV][iI][rR][uU][sS]|[cC][oO][rR][oO][nN][aA]|[vV][iI][rR][uU][sS]|[cC][oO][vV][iI][dD]|[sS][aA][rR][sS]\-[cC][oO][vV][iI][dD]\-19|[sS][aA][rR][sS]\-[cC][oO][vV][iI][dD]\-19\-2|[sS][aA][rR][sS]\-[cC][oO][vV]\-2|2019\-[nN][cC][oO][vV]|CoV/gi, '░░█▒ █▒▒ █▓▓░');
}
}开发者回应
发布于 5 年前Thanks we have already submitted the new version for review it will be rolling out soon