A Chrome Extension to block or replace some text in website. Download Url
- Block some text in all website by some rule you set.
- Replace some text in all website by some rule you set.
What scenario use text-block
?
- Usually hide the word that you don't like
- Sometimes parent can block sensitive word for children.
- Play a joke with your friends.
- Block bullet screen(probably it is called 'danmaku') in HTML5 Video. For Example, bilibili.com, douyu.com etc.
Nowtext-block
support two kinds of rule:
text match
, exact match thetext
, not fuzzy search.RegExp match
,regexp
is javascript language support type. mdn
-
install extension from chrome app
-
click
text-block
icon and add rule
- input your rule content.Every rule contain three element.
- First is
match type
. You can selecttext match
orRegRxp match
.text match
is exact match, it is easy to set up.RegExp match
is more powerful, such as/[Ss]ome/
string is match. - Second is
match rule
. If you selecttext match
type, this is matchtext
. If you selectRegExp match
, this isRegExp
object. - Third is
replace value
. Usually if you want to block text,replace value
is not necessary to set up. If you want to replace with other value, you can input some text. It is a pure string to replace.
-
click
start
button to start 'block' process. If it not work, you can refrest website. -
If you want to add a new rule or delete a rule on 'starting' status, you can click
reload
button after your setting.
If extension version > 0.8.0
, you can set domain mode: blacklist
or whitelist
. By default, domain mode is blacklist
.
You can click blacklist
to toggle domain mode.
You can click Add to List
to add current domain in blacklist
or whitelist
.
P.S: The same domain can save in blacklist
and whitelist
which work in different mode.
If you set mode as blacklist
, it means text-block
will not work in list of domain.
For example, blacklist
content is:
foo.com
bar.com
text-block
will not work in foo.com
and bar.com
If you set mode as whitelist
, it means text-block
will only work in list of domain.
For example, whitelist
content is:
foo.com
bar.com
text-block
will only work in foo.com
and bar.com
If you want to see what html element is changed, you can toggle highlight
button.