highlight-my-interest

highlight keywords in my favorites

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Аўтар
Jferroal L
Усталяванняў за дзень
0
Усяго ўсталяванняў
1,479
Рэйтынг
16 0 0
Версія
0.3.2
Створаны
18.04.2017
Абноўлены
23.08.2018
Памер
6.5 КБ
Ліцэнзія
GPL-3.0
Ужываецца на
Усе сайты

高亮特定网站中你感兴趣的内容

github 地址
有人和意见和修改可以通过 github 进行联系 ~

基本使用

默认高亮少数派, 开发者头条, inoreader 中的特定关键词

如需修改关键词请在第 141 行修改
如需修改匹配站点请在第 243 行修改

高级使用

支持通过远程服务器获取, 如 gist 进行配置
通过设置第 78 行为 const Config = {loadUrl: 'remoteUrl'};开启通过远程配置, 比如:

const Config = {loadUrl: 'https://gist.githubusercontent.com/ezirmusitua/821c26fb8c1cb5548f3ef4ec434caa65/raw/a523661bc2983ed63b23fd39294080b265688553/interested-keywords.json'};

配置形式为:

{ "color": { "type1": { "bg": "yellow", "text": "white" }, "default": { "bg": "green", "text": "black" } }, "sites": { "*.": [ {"str": "javascript", "title": "Programming Language", "type": "type1" } ] } }

其中:
color 指的是高亮配色, 有关键词的 type 决定使用什么配色, 一定要有 default 的配色
sites 指的是需要高亮的网站, key 为站点 url 正则, value 为匹配关键词配置, str 为要匹配的关键词(支持正则), title 为将鼠标放置在高亮关键词上显示会显示的内容(浏览器默认形式), type 为关键词类型, 在 color 中配置的不同类型能显示不同的配色

示例配置参考[这个文件](https://gist.github.com/ezirmusitua/821c26fb8c1cb5548f3ef4ec434caa65)

说明

一般来说使用默认配置修改关键词即可
如果希望针对不同站点高亮不同的内容, 则使用远程配置
对于远程配置:

  1. 使用 gist 服务进行配置是最方便的, 注意loadUrl是 raw 链接
  2. 如果希望使用其他方式进行远程配置, 只要保证返回内容是 json 格式则无需更多修改
  3. 如果其他方式返回的不是 json 格式, 请修改 171 行的DefaultResponseHandler自行解析