Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4,882 changes: 4,882 additions & 0 deletions dist/index.cjs

Large diffs are not rendered by default.

4,876 changes: 4,876 additions & 0 deletions dist/index.js

Large diffs are not rendered by default.

275 changes: 275 additions & 0 deletions dist/schemas/filters.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,275 @@
{
"definitions": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://adguard.com/filters.json",
"type": "object",
"title": "The ROOT Schema",
"required": [
"groups",
"tags",
"filters"
],
"properties": {
"groups": {
"$id": "#/properties/groups",
"type": "array",
"title": "The GROUPS Schema",
"items": {
"$id": "#/properties/groups/items",
"type": "object",
"title": "The ITEMS Schema",
"required": [
"groupId",
"groupName",
"groupDescription",
"displayNumber"
],
"properties": {
"groupId": {
"$id": "#/properties/groups/items/properties/groupId",
"type": "integer",
"title": "The GROUPID Schema",
"default": 0,
"examples": [
1
]
},
"groupName": {
"$id": "#/properties/groups/items/properties/groupName",
"type": "string",
"title": "The GROUPNAME Schema",
"default": "",
"examples": [
"Ad Blocking"
],
"pattern": "^(.*)$"
},
"groupDescription": {
"$id": "#/properties/groups/items/properties/groupDescription",
"type": "string",
"title": "The GROUPDESCRIPTION Schema",
"default": "",
"examples": [
"Block ads"
],
"pattern": "^(.*)$"
},
"displayNumber": {
"$id": "#/properties/groups/items/properties/displayNumber",
"type": "integer",
"title": "The DISPLAYNUMBER Schema",
"default": 0,
"examples": [
1
]
}
}
}
},
"tags": {
"$id": "#/properties/tags",
"type": "array",
"title": "The TAGS Schema",
"items": {
"$id": "#/properties/tags/items",
"type": "object",
"title": "The ITEMS Schema",
"required": [
"tagId",
"keyword"
],
"properties": {
"tagId": {
"$id": "#/properties/tags/items/properties/tagId",
"type": "integer",
"title": "The TAGID Schema",
"default": 0,
"examples": [
1
]
},
"keyword": {
"$id": "#/properties/tags/items/properties/keyword",
"type": "string",
"title": "The KEYWORD Schema",
"default": "",
"examples": [
"purpose:ads"
],
"pattern": "^(.*)$"
}
}
}
},
"filters": {
"$id": "#/properties/filters",
"type": "array",
"title": "The FILTERS Schema",
"items": {
"$id": "#/properties/filters/items",
"type": "object",
"title": "The ITEMS Schema",
"required": [
"filterId",
"name",
"description",
"timeAdded",
"homepage",
"expires",
"displayNumber",
"groupId",
"subscriptionUrl",
"downloadUrl",
"version",
"timeUpdated",
"deprecated",
"languages",
"tags"
],
"properties": {
"filterId": {
"$id": "#/properties/filters/items/properties/filterId",
"type": "integer",
"title": "The FILTERID Schema",
"default": 0,
"examples": [
101
]
},
"name": {
"$id": "#/properties/filters/items/properties/name",
"type": "string",
"title": "The NAME Schema",
"default": "",
"examples": [
"EasyList"
],
"pattern": "^(.*)$"
},
"description": {
"$id": "#/properties/filters/items/properties/description",
"type": "string",
"title": "The DESCRIPTION Schema",
"default": "",
"examples": [
"EasyList is the primary subscription that removes adverts from web pages in English language."
],
"pattern": "^(.*)$"
},
"timeAdded": {
"$id": "#/properties/filters/items/properties/timeAdded",
"type": "string",
"title": "The TIMEADDED Schema",
"default": "",
"examples": [
"2014-06-30T10:56:55+0300"
],
"pattern": "^(.*)$"
},
"deprecated": {
"$id": "#/properties/filters/items/properties/deprecated",
"type": "boolean",
"title": "The DEPRECATED Schema",
"default": false
},
"homepage": {
"$id": "#/properties/filters/items/properties/homepage",
"type": "string",
"title": "The HOMEPAGE Schema",
"default": "",
"examples": [
"https://easylist.to/"
],
"pattern": "^(.*)$"
},
"expires": {
"$id": "#/properties/filters/items/properties/expires",
"type": "integer",
"title": "The EXPIRES Schema",
"default": 0,
"examples": [
172800
]
},
"displayNumber": {
"$id": "#/properties/filters/items/properties/displayNumber",
"type": "integer",
"title": "The DISPLAYNUMBER Schema",
"default": 0,
"examples": [
3
]
},
"groupId": {
"$id": "#/properties/filters/items/properties/groupId",
"type": "integer",
"title": "The GROUPID Schema",
"default": 0,
"examples": [
1
]
},
"subscriptionUrl": {
"$id": "#/properties/filters/items/properties/subscriptionUrl",
"type": "string",
"title": "The SUBSCRIPTIONURL Schema",
"default": "",
"examples": [
"https://easylist.to/easylist/easylist.txt"
],
"pattern": "^(.*)$"
},
"downloadUrl": {
"$id": "#/properties/filters/items/properties/downloadUrl",
"type": "string",
"title": "The DOWNLOADURL Schema",
"default": "",
"examples": [
"https://filters.adtidy.org/extension/safari/filters/1.txt"
],
"pattern": "^(.*)$"
},
"version": {
"$id": "#/properties/filters/items/properties/version",
"type": "string",
"title": "The VERSION Schema",
"default": "",
"examples": [
"2.0.20.32"
],
"pattern": "^(.*)$"
},
"timeUpdated": {
"$id": "#/properties/filters/items/properties/timeUpdated",
"type": "string",
"title": "The TIMEUPDATED Schema",
"default": "",
"examples": [
"2018-12-04T16:00:16+0300"
],
"pattern": "^(.*)$"
},
"languages": {
"$id": "#/properties/filters/items/properties/languages",
"type": "array",
"title": "The LANGUAGES Schema"
},
"tags": {
"$id": "#/properties/filters/items/properties/tags",
"type": "array",
"title": "The TAGS Schema",
"items": {
"$id": "#/properties/filters/items/properties/tags/items",
"type": "integer",
"title": "The Items Schema",
"default": 0,
"examples": [
1
]
}
}
}
}
}
}
}
Loading
Loading