From 5116709781da8eb4a79af6a230719f9f6d0d0814 Mon Sep 17 00:00:00 2001 From: Manabu Nakazawa Date: Sat, 20 Jul 2024 11:12:03 +1000 Subject: [PATCH] Add a `supportedDevices` attribute to the metadata of a rule set. --- docs/library/README.md | 6 +++++- .../14_facebook_always_show_most_recent_feed/metadata.json | 6 +++++- .../14_facebook_always_show_most_recent_feed/rule-set.json | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/docs/library/README.md b/docs/library/README.md index f639a1a..1674941 100644 --- a/docs/library/README.md +++ b/docs/library/README.md @@ -69,7 +69,8 @@ This file contains metadata of a rule set. "title": "", "description": "", "primaryCategoryId": "gaming", - "secondaryCategoryId": "productivity" + "secondaryCategoryId": "productivity", + "supportedDevices": ["desktop", "tablet"] } ``` @@ -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. diff --git a/docs/library/rule-sets/14_facebook_always_show_most_recent_feed/metadata.json b/docs/library/rule-sets/14_facebook_always_show_most_recent_feed/metadata.json index 6dbc4fa..7bc48a7 100644 --- a/docs/library/rule-sets/14_facebook_always_show_most_recent_feed/metadata.json +++ b/docs/library/rule-sets/14_facebook_always_show_most_recent_feed/metadata.json @@ -6,5 +6,9 @@ "imageFiles": [ "cover.webp" ], - "primaryCategoryId": "social_media" + "primaryCategoryId": "social_media", + "supportedPlatforms": [ + "desktop", + "tablet" + ] } diff --git a/docs/library/rule-sets/14_facebook_always_show_most_recent_feed/rule-set.json b/docs/library/rule-sets/14_facebook_always_show_most_recent_feed/rule-set.json index bb9c1c6..369e534 100644 --- a/docs/library/rule-sets/14_facebook_always_show_most_recent_feed/rule-set.json +++ b/docs/library/rule-sets/14_facebook_always_show_most_recent_feed/rule-set.json @@ -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",