Skip to content

Commit

Permalink
Add a rule for OpenPuppies
Browse files Browse the repository at this point in the history
  • Loading branch information
mshibanami committed Sep 14, 2024
1 parent 61c9ba4 commit 33eb455
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
Binary file not shown.
15 changes: 15 additions & 0 deletions docs/library/rule-sets/20_fix_open_puppies/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"aboutUrl": "https://github.com/heyitsolivia/secretpuppies/issues/90",
"contributorGitHubIds": [
"mshibanami"
],
"imageFiles": [
"cover.webp"
],
"supportedDeviceTypes": [
"phone",
"tablet"
],
"primaryCategoryId": "pets_and_animals",
"secondaryCategoryId": "arts_and_entertainment"
}
21 changes: 21 additions & 0 deletions docs/library/rule-sets/20_fix_open_puppies/rule-set.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"bundleID": "io.github.mshibanami.RedirectWebForSafari",
"formatVersion": "2",
"kind": "RedirectList",
"redirects": [
{
"comments": "Do you know OpenPuppies (https:\/\/openpuppies.com\/)? It’s a website where you can watch random short videos of puppies. However, the videos don’t load properly on mobile devices. This rule fixes that, so you can enjoy cute puppy videos on your phone or tablet!",
"destinationURLPattern": "$1.mp4",
"kind": "Redirect",
"resourceTypes": [
"image"
],
"sourceURLPattern": {
"type": "regularExpression",
"value": "(https:\/\/openpuppies\\.com\/mp4\/[^.]*)\\.gif"
},
"title": "Fix OpenPuppies for Mobile Devices",
"type": "declarativeNetRequestRedirect"
}
]
}

0 comments on commit 33eb455

Please sign in to comment.