Skip to content

Commit

Permalink
Patch amazon to get full twitch experience
Browse files Browse the repository at this point in the history
  • Loading branch information
besuper committed Nov 19, 2022
1 parent 0957deb commit 54f0428
Show file tree
Hide file tree
Showing 19 changed files with 3,674 additions and 1,347 deletions.
32 changes: 4 additions & 28 deletions firefox-manifest.json
Original file line number Diff line number Diff line change
@@ -1,52 +1,28 @@
{
"name": "TwitchNoSub",
"version": "0.5.1",
"version": "0.6",
"description": "Show sub only VOD on Twitch",
"manifest_version": 2,
"icons": {
"128": "assets/icons/icon.png"
},
"web_accessible_resources": [
"src/scripts/video-7.20.2.min.js",
"src/scripts/silvermine-videojs-quality-selector.min.js"
"src/patched-amazon.js"
],
"browser_action": {
"default_popup": "src/content/watching_list.html"
},
"background": {
"scripts": [
"src/background.js"
],
"persistent": true
},
"permissions": [
"storage",
"activeTab",
"tabs",
"webNavigation",
"webRequest",
"webRequestBlocking",
"https://*.twitch.tv/*",
"https://*.cloudfront.net/*",
"https://usher.ttvnw.net/*"
],
"content_scripts": [
{
"run_at": "document_start",
"matches": [
"https://www.twitch.tv/*"
],
"js": [
"src/chat.js",
"src/thumbnails.js",
"src/media.js",
"src/app.js"
],
"css": [
"src/style/video-js-7.20.2.min.css",
"src/style/custom.css",
"src/style/chat.css"
]
}
"https://static.twitchcdn.net/assets/*"
],
"browser_specific_settings": {
"gecko": {
Expand Down
37 changes: 10 additions & 27 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,29 @@
{
"name": "TwitchNoSub",
"version": "0.5.1",
"version": "0.6",
"description": "Show sub only VOD on Twitch",
"manifest_version": 3,
"icons": {
"128": "assets/icons/icon.png"
},
"action": {
"default_popup": "src/content/watching_list.html"
},
"web_accessible_resources": [
{
"resources": [ "src/patched-amazon.js" ],
"matches": [ "https://www.twitch.tv/*" ]
}
],
"background": {
"service_worker": "src/background.js"
},
"host_permissions": [
"https://www.twitch.tv/*",
"https://usher.ttvnw.net/*"
"https://static.twitchcdn.net/assets/*"
],
"permissions": [
"storage",
"activeTab",
"tabs",
"webRequest",
"webNavigation"
],
"content_scripts": [
{
"run_at": "document_start",
"matches": [
"https://www.twitch.tv/*"
],
"js": [
"src/scripts/video-7.20.2.min.js",
"src/scripts/silvermine-videojs-quality-selector.min.js",
"src/chat.js",
"src/thumbnails.js",
"src/app.js"
],
"css": [
"src/style/video-js-7.20.2.min.css",
"src/style/custom.css",
"src/style/chat.css"
]
}
"webNavigation",
"declarativeNetRequest"
]
}
Loading

1 comment on commit 54f0428

@ashishkotnala29
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is Brilliant! Thank you for your work.

Please sign in to comment.