-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rule for YouTube Shorts > Normal Videos
- Loading branch information
1 parent
8762f55
commit ec5c2da
Showing
3 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
10 changes: 10 additions & 0 deletions
10
docs/library/rule-sets/19_youtube_shorts_to_normal_videos/metadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"contributorGitHubIds": [ | ||
"mshibanami" | ||
], | ||
"imageFiles": [ | ||
"cover.webp" | ||
], | ||
"primaryCategoryId": "arts_and_entertainment", | ||
"secondaryCategoryId": "social_media" | ||
} |
25 changes: 25 additions & 0 deletions
25
docs/library/rule-sets/19_youtube_shorts_to_normal_videos/rule-set.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"bundleID": "io.github.mshibanami.RedirectWebForSafari", | ||
"formatVersion": "2", | ||
"kind": "RedirectList", | ||
"redirects": [ | ||
{ | ||
"comments": "This converts YouTube Shorts into regular videos, allowing them to be played on a less addictive UI with full controls.", | ||
"destinationURLPattern": "https:\/\/$1.youtube.com\/watch?v=$2", | ||
"exampleURLs": [ | ||
"https:\/\/www.youtube.com\/shorts\/ontm1vqONVY", | ||
"https:\/\/m.youtube.com\/shorts\/ontm1vqONVY" | ||
], | ||
"kind": "Redirect", | ||
"resourceTypes": [ | ||
"main_frame" | ||
], | ||
"sourceURLPattern": { | ||
"type": "regularExpression", | ||
"value": "https:\/\/((?:www)*(?:m)*)\\.youtube\\.com\/shorts\/([^?]+).*" | ||
}, | ||
"title": "YouTube: Watch Short Videos as Normal Videos", | ||
"type": "declarativeNetRequestRedirect" | ||
} | ||
] | ||
} |