Skip to content

Commit ba968bb

Browse files
committed
[feature] 65 - redirect shorts to original video player
1 parent 492e4df commit ba968bb

File tree

15 files changed

+3930
-92
lines changed

15 files changed

+3930
-92
lines changed

Readme.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Also allows you to hide "Shorts" tab.
1919
- Hiding videos that are shorter than specified time (experimental, off by default)
2020
- Hiding live videos (experimental, off by default)
2121
- Hiding 'Upcoming' videos (experimental, off by default)
22+
- Redirect shorts to original video player (experimental, off by default)
2223

2324
## Installation
2425

@@ -48,3 +49,11 @@ or add the Add-on manually:
4849
## License
4950

5051
[GPL-3.0](https://github.com/Vulpelo/hide-youtube-shorts/blob/master/LICENCE.md)
52+
53+
# FAQ
54+
- Going "Back" in navigation again redirects tab to the original video player
55+
- Chrome and Firefox on Android don't support [loadReplace option](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/update), meaning that clicking "Back" button will direct to the original video URL (not the page from which video was clicked on). This will then again redirect the page. You can click and hold the back button to display list of previous pages and select desired page from here.
56+
- After addon installation shorts are still visible on youtube's page
57+
- It is also required to refresh the youtube's page in order for the scripts to load.
58+
- After a while youtube starts slowing down
59+
- Extension hides (not removes) shorts and their containers so they still take up some memory. Depending on how many shorts got hidden the website can start slowing down. Refreshing the page will clean up website from leftover elements.

_locales/de/messages.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@
2626
"cfg_hide_short_videos_tooltip": {"message": "Versteckt Videos, die kürzer als die angegebene Zeit in Sekunden sind."},
2727

2828
"cfg_hide_live_videos": {"message": "'Live-Videos' ausblenden"},
29-
"cfg_hide_upcoming_videos": {"message": "'Kommende' Videos ausblenden"}
29+
"cfg_hide_upcoming_videos": {"message": "'Kommende' Videos ausblenden"},
30+
"cfg_shorts_in_original_video_player": {"message": "Weiterleitung zum Original-Videoplayer"}
3031
}

_locales/en/messages.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@
2626
"cfg_hide_short_videos_tooltip": {"message": "Hides videos that are shorter than specified time in seconds."},
2727

2828
"cfg_hide_live_videos": {"message": "Hide Live videos"},
29-
"cfg_hide_upcoming_videos": {"message": "Hide 'Upcoming' videos"}
29+
"cfg_hide_upcoming_videos": {"message": "Hide 'Upcoming' videos"},
30+
"cfg_shorts_in_original_video_player": {"message": "Redirect to original video player"}
3031
}

_locales/fr/messages.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@
2626
"cfg_hide_short_videos_tooltip": {"message": "Masque les vidéos dont la durée est plus courte que la durée spécifiée en secondes."},
2727

2828
"cfg_hide_live_videos": {"message": "Masquer les vidéos 'en direct'"},
29-
"cfg_hide_upcoming_videos": {"message": "Masquer les vidéos 'à venir'"}
29+
"cfg_hide_upcoming_videos": {"message": "Masquer les vidéos 'à venir'"},
30+
"cfg_shorts_in_original_video_player": {"message": "Rediriger vers le lecteur vidéo d'origine"}
3031
}

_locales/pl/messages.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@
2626
"cfg_hide_short_videos_tooltip": {"message": "Ukrywa filmy, które są krótsze niż określony czas w sekundach."},
2727

2828
"cfg_hide_live_videos": {"message": "Ukryj transmisje na żywo"},
29-
"cfg_hide_upcoming_videos": {"message": "Ukryj filmy typu 'Wkrótce'"}
29+
"cfg_hide_upcoming_videos": {"message": "Ukryj filmy typu 'Wkrótce'"},
30+
"cfg_shorts_in_original_video_player": {"message": "Przekieruj do oryginalnego odtwarzacza wideo"}
3031
}

_locales/uk/messages.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@
2626
"cfg_hide_short_videos_tooltip": {"message": "Приховує відео, які коротші за вказаний час у секундах."},
2727

2828
"cfg_hide_live_videos": {"message": "Приховати 'живі' відео"},
29-
"cfg_hide_upcoming_videos": {"message": "Приховати 'майбутні' відео"}
29+
"cfg_hide_upcoming_videos": {"message": "Приховати 'майбутні' відео"},
30+
"cfg_shorts_in_original_video_player": {"message": "Перенаправлення на оригінальний відеоплеєр"}
3031
}

manifest-chrome.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"manifest_version": 3,
3-
"version": "1.8.8",
3+
"version": "1.9.0",
44
"name": "__MSG_extensionName__",
55
"description": "__MSG_extensionDescription__",
66
"icons": {
77
"64": "icons/hideshort-64.png"
88
},
99
"permissions" : [
10-
"storage"
10+
"storage",
11+
"tabs"
1112
],
1213
"content_scripts": [
1314
{
@@ -21,12 +22,16 @@
2122
"run_at": "document_idle"
2223
}
2324
],
25+
"background": {
26+
"service_worker": "./src/background/background-chrome.js",
27+
"type": "module"
28+
},
2429
"default_locale": "en",
2530
"action": {
2631
"default_icon":{
2732
"64":"icons/hideshort-64.png"
2833
},
2934
"default_title": "Hide-Shorts",
30-
"default_popup": "./src/popup.html"
35+
"default_popup": "./src/menu/popup.html"
3136
}
3237
}

manifest-firefox.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"manifest_version": 2,
3-
"version": "1.8.8",
3+
"version": "1.9.0",
44
"name": "__MSG_extensionName__",
55
"description": "__MSG_extensionDescription__",
66
"icons": {
77
"64": "icons/hideshort-64.png"
88
},
99
"permissions" : [
10-
"storage"
10+
"storage",
11+
"tabs"
1112
],
1213
"content_scripts": [
1314
{
@@ -21,12 +22,15 @@
2122
"run_at": "document_idle"
2223
}
2324
],
25+
"background": {
26+
"scripts": [ "./src/background/background-firefox.js" ]
27+
},
2428
"default_locale": "en",
2529
"browser_action": {
2630
"default_icon":{
2731
"64":"icons/hideshort-64.png"
2832
},
2933
"default_title": "Hide-Shorts",
30-
"default_popup": "./src/popup.html"
34+
"default_popup": "./src/menu/popup.html"
3135
}
3236
}

0 commit comments

Comments
 (0)