Skip to content

Commit

Permalink
Add a supportedDevices attribute to the metadata of a rule set.
Browse files Browse the repository at this point in the history
  • Loading branch information
mshibanami committed Jul 20, 2024
1 parent 5b26994 commit 5116709
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion docs/library/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ This file contains metadata of a rule set.
"title": "<A title of the rule set>",
"description": "<A description of the rule set.>",
"primaryCategoryId": "gaming",
"secondaryCategoryId": "productivity"
"secondaryCategoryId": "productivity",
"supportedDevices": ["desktop", "tablet"]
}
```

Expand All @@ -82,3 +83,6 @@ This file contains metadata of a rule set.
- `description` (optional): A description of the rule set. This is optional when the first rule in the rule set has non-empty `comments`.
- `primaryCategoryId`: A primary category ID of the rule set. Find a list of the categories in [categories.json](./categories.json).
- `secondaryCategoryId` (optional): A secondary category ID of the rule set.
- `supportedDevices` (optional): An array of device types that support the rule set.
- `desktop`, `tablet` and `phone` are available.
- All platforms are supported by default.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@
"imageFiles": [
"cover.webp"
],
"primaryCategoryId": "social_media"
"primaryCategoryId": "social_media",
"supportedPlatforms": [
"desktop",
"tablet"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"captureGroupProcesses" : [

],
"comments" : "To not get bombarded with random posts that want to grab your attention, this rule always redirects from the Facebook home page to the \"Most Recent\" feed where it shows only the posts of your friends sorted from latest to oldest.\n\n(Doesn't work inside the Facebook app, of course.)",
"comments" : "To not get bombarded with random posts that want to grab your attention, this rule always redirects from the Facebook home page to the \"Most Recent\" feed where it shows only the posts of your friends sorted from latest to oldest.\n\n(Doesn't work inside the Facebook app, of course.)\n\n⚠️ This is unavailable on iPhone (but available on Mac and iPad) because the URLs for Facebook's Feeds and Home pages are both `https://www.facebook.com/` on iPhone.",
"destinationURLPattern" : "https:\/\/www.facebook.com\/?filter=all&sk=h_chr",
"exampleURLs" : [
"https:\/\/www.facebook.com",
Expand Down

0 comments on commit 5116709

Please sign in to comment.