inject builtin rules

This commit is contained in:
Gabe Yuan
2023-08-17 15:55:44 +08:00
parent bd45947d68
commit 0b9fe65833
7 changed files with 119 additions and 60 deletions

View File

@@ -4,13 +4,17 @@ export const DEFAULT_SELECTOR = `:is(${els})`;
export const RULES = [
{
pattern: `bearblog.dev, www.theverge.com, www.tampermonkey.net/documentation.php`,
selector: DEFAULT_SELECTOR,
pattern: `www.google.com/search`,
selector: `h3, .IsZvec, .VwiC3b`,
},
{
pattern: `https://news.google.com/`,
selector: `h4`,
},
{
pattern: `bearblog.dev, www.theverge.com, www.tampermonkey.net/documentation.php`,
selector: DEFAULT_SELECTOR,
},
{
pattern: `themessenger.com`,
selector: `.leading-tight, .leading-tighter, .my-2 p, .font-body p, article ${DEFAULT_SELECTOR}`,
@@ -127,8 +131,4 @@ export const RULES = [
pattern: `youtube.com`,
selector: `h1, #video-title, #content-text, #title, yt-attributed-string>span>span`,
},
{
pattern: `www.google.com/search`,
selector: `h3, .IsZvec, .VwiC3b`,
},
];