├── LICENSE ├── README.md ├── _locales ├── cs │ └── messages.json ├── en │ └── messages.json ├── ru │ └── messages.json └── uk │ └── messages.json ├── icons ├── icon128.png ├── icon16.png └── icon48.png ├── manifest.json ├── options.html ├── options.js └── src ├── content_script.js └── inject ├── inject_codec_check.js └── inject_ln.js /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2019 alextrv 4 | Copyright (c) 2015 erkserkserks 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # About 2 | enhanced-h264ify is a fork of well-known h264ify extension for Firefox/Chrome which blocks VP8/VP9 codecs on YouTube, so that you can use H264 only. This may be useful because there are lots of devices on the market which support H264 hardware decoding and do not support VP8/VP9. 3 | 4 | This extension has new features such as manual blocking of H264, VP8, VP9, AV1, Opus, AAC codecs and 60fps video. By default it blocks everything but H264 and 60fps video. 5 | It works only on YouTube. 6 | 7 | # Installation 8 | Install for Firefox: https://addons.mozilla.org/en-US/firefox/addon/enhanced-h264ify/ 9 | 10 | Install for Chrome: https://chrome.google.com/webstore/detail/enhanced-h264ify/omkfmpieigblcllmkgbflkikinpkodlk 11 | -------------------------------------------------------------------------------- /_locales/cs/messages.json: -------------------------------------------------------------------------------- 1 | { 2 | "extensionDescription": { 3 | "message": "Choose what video and audio codecs YouTube should play for you", 4 | "description": "Extension description" 5 | }, 6 | 7 | "optionsTitle": { 8 | "message": "Možnosti enhanced-h264ify" 9 | }, 10 | 11 | "optionsBlock60fps": { 12 | "message": "Blokovat 60fps videa" 13 | }, 14 | 15 | "optionsBlockH264": { 16 | "message": "Blokovat h264 (AVC)" 17 | }, 18 | 19 | "optionsBlockVP8": { 20 | "message": "Blokovat VP8" 21 | }, 22 | 23 | "optionsBlockVP9": { 24 | "message": "Blokovat VP9" 25 | }, 26 | 27 | "optionsBlockAV1": { 28 | "message": "Blokovat AV1" 29 | }, 30 | 31 | "optionsBlockOpus": { 32 | "message": "Blokovat Opus" 33 | }, 34 | 35 | "optionsBlockMP4A": { 36 | "message": "Blokovat AAC (MP4A)" 37 | }, 38 | 39 | "optionsDisableLN": { 40 | "message": "Zakázat normalizaci hlasitosti" 41 | }, 42 | 43 | "optionsTitleVideo": { 44 | "message": "Video" 45 | }, 46 | 47 | "optionsTitleAudio": { 48 | "message": "Zvuk" 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /_locales/en/messages.json: -------------------------------------------------------------------------------- 1 | { 2 | "extensionDescription": { 3 | "message": "Choose what video and audio codecs YouTube should play for you", 4 | "description": "Extension description" 5 | }, 6 | 7 | "optionsTitle": { 8 | "message": "enhanced-h264ify" 9 | }, 10 | 11 | "optionsBlock60fps": { 12 | "message": "Block 60fps video" 13 | }, 14 | 15 | "optionsBlockH264": { 16 | "message": "Block h264 (AVC)" 17 | }, 18 | 19 | "optionsBlockVP8": { 20 | "message": "Block VP8" 21 | }, 22 | 23 | "optionsBlockVP9": { 24 | "message": "Block VP9" 25 | }, 26 | 27 | "optionsBlockAV1": { 28 | "message": "Block AV1" 29 | }, 30 | 31 | "optionsBlockOpus": { 32 | "message": "Block Opus" 33 | }, 34 | 35 | "optionsBlockMP4A": { 36 | "message": "Block AAC (MP4A)" 37 | }, 38 | 39 | "optionsDisableLN": { 40 | "message": "Disable Loudness Normalization" 41 | }, 42 | 43 | "optionsTitleVideo": { 44 | "message": "Video" 45 | }, 46 | 47 | "optionsTitleAudio": { 48 | "message": "Audio" 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /_locales/ru/messages.json: -------------------------------------------------------------------------------- 1 | { 2 | "extensionDescription": { 3 | "message": "Выбирайте сами видео и аудио кодеки, которые YouTube будет вам показывать", 4 | "description": "Extension description" 5 | }, 6 | 7 | "optionsTitle": { 8 | "message": "enhanced-h264ify" 9 | }, 10 | 11 | "optionsBlock60fps": { 12 | "message": "Блокировать 60к/с видео" 13 | }, 14 | 15 | "optionsBlockH264": { 16 | "message": "Блокировать h264 (AVC)" 17 | }, 18 | 19 | "optionsBlockVP8": { 20 | "message": "Блокировать VP8" 21 | }, 22 | 23 | "optionsBlockVP9": { 24 | "message": "Блокировать VP9" 25 | }, 26 | 27 | "optionsBlockAV1": { 28 | "message": "Блокировать AV1" 29 | }, 30 | 31 | "optionsBlockOpus": { 32 | "message": "Блокировать Opus" 33 | }, 34 | 35 | "optionsBlockMP4A": { 36 | "message": "Блокировать AAC (MP4A)" 37 | }, 38 | 39 | "optionsDisableLN": { 40 | "message": "Выключить нормализацию громкости" 41 | }, 42 | 43 | "optionsTitleVideo": { 44 | "message": "Видео" 45 | }, 46 | 47 | "optionsTitleAudio": { 48 | "message": "Аудио" 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /_locales/uk/messages.json: -------------------------------------------------------------------------------- 1 | { 2 | "extensionDescription": { 3 | "message": "Вибирайте самі відео та аудіо кодеки, які YouTube буде вам показувати", 4 | "description": "Extension description" 5 | }, 6 | 7 | "optionsTitle": { 8 | "message": "enhanced-h264ify" 9 | }, 10 | 11 | "optionsBlock60fps": { 12 | "message": "Блокувати 60к/с відео" 13 | }, 14 | 15 | "optionsBlockH264": { 16 | "message": "Блокувати h264 (AVC)" 17 | }, 18 | 19 | "optionsBlockVP8": { 20 | "message": "Блокувати VP8" 21 | }, 22 | 23 | "optionsBlockVP9": { 24 | "message": "Блокувати VP9" 25 | }, 26 | 27 | "optionsBlockAV1": { 28 | "message": "Блокувати AV1" 29 | }, 30 | 31 | "optionsBlockOpus": { 32 | "message": "Блокувати Opus" 33 | }, 34 | 35 | "optionsBlockMP4A": { 36 | "message": "Блокувати AAC (MP4A)" 37 | }, 38 | 39 | "optionsDisableLN": { 40 | "message": "Вимкнути нормалізацію гучності" 41 | }, 42 | 43 | "optionsTitleVideo": { 44 | "message": "Відео" 45 | }, 46 | 47 | "optionsTitleAudio": { 48 | "message": "Аудіо" 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /icons/icon128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alextrv/enhanced-h264ify/16b206e49a391c184cc356344387927ee127049f/icons/icon128.png -------------------------------------------------------------------------------- /icons/icon16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alextrv/enhanced-h264ify/16b206e49a391c184cc356344387927ee127049f/icons/icon16.png -------------------------------------------------------------------------------- /icons/icon48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alextrv/enhanced-h264ify/16b206e49a391c184cc356344387927ee127049f/icons/icon48.png -------------------------------------------------------------------------------- /manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "enhanced-h264ify", 3 | "version": "2.2.1", 4 | "manifest_version": 3, 5 | "description": "__MSG_extensionDescription__", 6 | "homepage_url": "https://github.com/alextrv/enhanced-h264ify", 7 | "icons": { 8 | "16": "icons/icon16.png", 9 | "48": "icons/icon48.png", 10 | "128": "icons/icon128.png" 11 | }, 12 | "action": { 13 | "default_icon": { 14 | "16": "icons/icon16.png", 15 | "48": "icons/icon48.png", 16 | "128": "icons/icon128.png" 17 | }, 18 | "default_title": "enhanced-h264ify", 19 | "default_popup": "options.html" 20 | }, 21 | "content_scripts": [ 22 | { 23 | "matches": [ 24 | "*://*.youtube.com/*", 25 | "*://*.youtube-nocookie.com/*", 26 | "*://*.youtu.be/*" 27 | ], 28 | "js": [ 29 | "src/content_script.js" 30 | ], 31 | "run_at": "document_start", 32 | "all_frames": true 33 | } 34 | ], 35 | "web_accessible_resources": [ 36 | { 37 | "matches": [ 38 | "*://*.youtube.com/*", 39 | "*://*.youtube-nocookie.com/*", 40 | "*://*.youtu.be/*" 41 | ], 42 | "resources": [ 43 | "src/inject/inject_codec_check.js", 44 | "src/inject/inject_ln.js" 45 | ] 46 | } 47 | ], 48 | "default_locale": "en", 49 | "options_ui": { 50 | "page": "options.html" 51 | }, 52 | "permissions": [ "storage" ] 53 | } 54 | -------------------------------------------------------------------------------- /options.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |