Skip to content

Commit

Permalink
Add support for firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
besuper committed Jul 9, 2022
1 parent 47dab1b commit f7ac21a
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 3 deletions.
52 changes: 52 additions & 0 deletions firefox-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"name": "TwitchNoSub",
"version": "0.3",
"description": "Show sub only VOD on Twitch",
"manifest_version": 2,
"icons": {
"128": "assets/icons/icon.png"
},
"browser_action": {
"default_popup": "src/content/watching_list.html"
},
"background": {
"scripts": [
"src/background.js"
],
"persistent": true
},
"permissions": [
"storage",
"activeTab",
"tabs",
"webNavigation",
"https://*.twitch.tv/*",
"https://*.cloudfront.net/*"
],
"content_scripts": [
{
"run_at": "document_end",
"matches": [
"https://www.twitch.tv/*"
],
"js": [
"src/scripts/jquery-3.6.0.min.js",
"src/scripts/plyr-polyfilled-3.7.2.js",
"src/scripts/hls-1.1.5.min.js",
"src/chat.js",
"src/app.js"
],
"css": [
"src/style/plyr-3.7.2.css",
"src/style/custom.css",
"src/style/chat.css"
]
}
],
"browser_specific_settings": {
"gecko": {
"id": "[email protected]",
"strict_min_version": "48.0"
}
}
}
4 changes: 1 addition & 3 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,7 @@ function fetchTwitchData(vodID, success) {
dataType: 'json',
async: true,
success: function (data, statut) {
if (statut === "success") {
success(data);
}
success(data);
}
});
}
Expand Down

0 comments on commit f7ac21a

Please sign in to comment.