Add JSON definition subscriptions
This commit is contained in:
parent
7e17470356
commit
bedeb8495d
15 changed files with 321 additions and 37 deletions
21
src/content/definitions/default.json
Normal file
21
src/content/definitions/default.json
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"schemaVersion": 1,
|
||||
"collectionId": "vibeguard-default",
|
||||
"name": "VibeGuard default definitions",
|
||||
"description": "Definitions maintained by the VibeGuard project.",
|
||||
"definitions": [
|
||||
{
|
||||
"id": "mastodon",
|
||||
"name": "Mastodon (official web interface)",
|
||||
"urlPatterns": ["<all_urls>"],
|
||||
"requiredSelectors": [".status__content", ".status, .detailed-status"],
|
||||
"post": {
|
||||
"rootSelectors": [".status", ".detailed-status"],
|
||||
"textSelectors": [".status__content", ".e-content"],
|
||||
"excludedSelectors": [".status__content__spoiler-link", ".status__content__read-more-button"],
|
||||
"idAttributes": ["data-id"],
|
||||
"permalinkSelectors": ["a.status__relative-time[href]", "a.detailed-status__datetime[href]", "a.u-url.u-uid[href]"]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in a new issue