This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Youtube webcompat webextension (#1047)
- Loading branch information
1 parent
5c6e7ff
commit 525310d
Showing
4 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
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
3 changes: 3 additions & 0 deletions
3
app/src/main/assets/web_extensions/youtube_webcompat/main.css
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,3 @@ | ||
div.alert-with-button-renderer { | ||
display:none; | ||
} |
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,8 @@ | ||
// Add meta-viewport | ||
let viewport = document.head.querySelector("meta[name='viewport']"); | ||
if (!viewport) { | ||
viewport = document.createElement("meta"); | ||
viewport.name = "viewport"; | ||
viewport.content = "width=user-width, initial-scale=1"; | ||
document.head.appendChild(viewport); | ||
} |
14 changes: 14 additions & 0 deletions
14
app/src/main/assets/web_extensions/youtube_webcompat/manifest.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,14 @@ | ||
{ | ||
"manifest_version": 2, | ||
"name": "YoutubeWebCompat", | ||
"version": "1.0", | ||
"description": "Youtube web compat fixes for Firefox Reality", | ||
"content_scripts": [ | ||
{ | ||
"matches": ["*://*.youtube.com/*"], | ||
"css": ["main.css"], | ||
"js": ["main.js"], | ||
"run_at": "document_end" | ||
} | ||
] | ||
} |