-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added support for multiple rule files and bundled rssbud rules
- Loading branch information
Showing
6 changed files
with
104 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
({ | ||
"github.com": { | ||
_name: "GitHub", | ||
".": [ | ||
{ | ||
title: "仓库 Releases", | ||
source: ["/:user/:repo/releases", "/:user/:repo/releases/*", "/:user/:repo"], | ||
targetType: "pathForOriginal", | ||
target: "/:user/:repo/releases.atom" | ||
}, | ||
{ | ||
title: "仓库 Commits", | ||
source: ["/:user/:repo/commits", "/:user/:repo/commits/:branch", "/:user/:repo"], | ||
targetType: "pathForOriginal", | ||
target: ({ user, repo, branch }, url) => `/${user}/${repo}/commits${branch ? "/" + branch : ""}.atom` | ||
}, | ||
{ | ||
title: "用户动态", | ||
source: "/:user", | ||
targetType: "pathForOriginal", | ||
target: "/:user.atom" | ||
} | ||
] | ||
}, | ||
"reddit.com": { | ||
_name: "Reddit", | ||
".": [ | ||
{ | ||
title: "当前页面", | ||
targetType: "url", | ||
target: (params, url) => { | ||
url = new URL(url); | ||
url.pathname += ".rss"; | ||
return url; | ||
} | ||
}, | ||
{ | ||
title: "当前页面 (trashhalo/reddit-rss)", | ||
docs: "https://github.com/trashhalo/reddit-rss", | ||
targetType: "url", | ||
target: (params, url) => { | ||
url = new URL(url); | ||
url.pathname += ".json"; | ||
url.domain = "reddit.0qz.fun"; | ||
return url; | ||
} | ||
} | ||
] | ||
}, | ||
"cnn.com": { | ||
_name: "CNN", | ||
".": [ | ||
{ | ||
title: "Top Stories", | ||
docs: "https://www.cnn.com/services/rss/", | ||
targetType: "url", | ||
target: "http://rss.cnn.com/rss/cnn_topstories.rss" | ||
} | ||
] | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters