From d4be34d6898fa8eabbc5c212df5689f5d55f50ad Mon Sep 17 00:00:00 2001 From: Gabe Yuan Date: Mon, 14 Aug 2023 10:43:10 +0800 Subject: [PATCH] update rules --- src/config/rules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/rules.js b/src/config/rules.js index 5e469d1..06d20ce 100644 --- a/src/config/rules.js +++ b/src/config/rules.js @@ -84,7 +84,7 @@ export const RULES = [ selector: `[data-component="headline"], [data-component="related-item-headline"], [data-component="title"], article ${DEFAULT_SELECTOR}`, }, { - pattern: `deno.land`, + pattern: `deno.land, docs.github.com`, selector: `main ${DEFAULT_SELECTOR}`, }, { @@ -116,7 +116,7 @@ export const RULES = [ selector: `.title, .commtext`, }, { - pattern: `github.com`, + pattern: `https://github.com/`, selector: `.markdown-body ${DEFAULT_SELECTOR}, .repo-description p, .Layout-sidebar .f4, .container-lg .py-4 .f5, .container-lg .my-4 .f5, .Box-row .pr-4, .Box-row article .mt-1, [itemprop='description']`, }, {