Skip to content

Commit

Permalink
first bigplayer version
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamlinerm committed Aug 24, 2024
1 parent 90c2cb7 commit 28eecdb
Show file tree
Hide file tree
Showing 10 changed files with 59 additions and 5 deletions.
6 changes: 6 additions & 0 deletions firefox/_locales/de/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -293,5 +293,11 @@
"HomeButton": {
"message": "Startseite",
"description": "Disney Homepage button"
},
"BigPlayerSwitch": {
"message": "Video vergrößert:"
},
"BigPlayerDescription": {
"message": "Erweitert die größe des Videos zum gesamten Browserfenster ohne Vollbild."
}
}
6 changes: 6 additions & 0 deletions firefox/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -293,5 +293,11 @@
"HomeButton": {
"message": "Home",
"description": "Disney Homepage button"
},
"BigPlayerSwitch": {
"message": "Video bigger:"
},
"BigPlayerDescription": {
"message": "Extends the video size to the entire browser window without full screen."
}
}
6 changes: 6 additions & 0 deletions firefox/_locales/mk/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -284,5 +284,11 @@
"HomeButton": {
"message": "Дома",
"description": "Disney Homepage button"
},
"BigPlayerSwitch": {
"message": "Видео поголемо:"
},
"BigPlayerDescription": {
"message": "Ја проширува големината на видеото на целиот прозорец на прелистувачот без цел екран."
}
}
6 changes: 6 additions & 0 deletions firefox/_locales/pt_BR/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -290,5 +290,11 @@
"HomeButton": {
"message": "Lar",
"description": "Disney Homepage button"
},
"BigPlayerSwitch": {
"message": "Vídeo maior:"
},
"BigPlayerDescription": {
"message": "Estende o tamanho do vídeo para toda a janela do navegador sem tela cheia."
}
}
2 changes: 1 addition & 1 deletion firefox/badge.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ if (isMobile) {
showRating: true,
},
Disney: { skipIntro: true, skipCredits: true, watchCredits: false, speedSlider: true, showRating: true, selfAd: true },
Crunchyroll: { skipIntro: true, speedSlider: true, releaseCalendar: true, dubLanguage: null, profile: true },
Crunchyroll: { skipIntro: true, speedSlider: true, releaseCalendar: true, dubLanguage: null, profile: true, bigPlayer: true },
HBO: { skipIntro: true, skipCredits: true, watchCredits: false, speedSlider: true, showRating: true },
Video: { playOnFullScreen: true, epilepsy: false, userAgent: true },
Statistics: { AmazonAdTimeSkipped: 0, NetflixAdTimeSkipped: 0, IntroTimeSkipped: 0, RecapTimeSkipped: 0, SegmentsSkipped: 0 },
Expand Down
2 changes: 1 addition & 1 deletion firefox/cr.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const defaultSettings = {
showRating: true,
},
Disney: { skipIntro: true, skipCredits: true, watchCredits: false, speedSlider: true, showRating: true, selfAd: true },
Crunchyroll: { skipIntro: true, speedSlider: true, releaseCalendar: true, dubLanguage: null, profile: true },
Crunchyroll: { skipIntro: true, speedSlider: true, releaseCalendar: true, dubLanguage: null, profile: true, bigPlayer: true },
HBO: { skipIntro: true, skipCredits: true, watchCredits: false, speedSlider: true, showRating: true },
Video: { playOnFullScreen: true, epilepsy: false, userAgent: true },
Statistics: { AmazonAdTimeSkipped: 0, NetflixAdTimeSkipped: 0, IntroTimeSkipped: 0, RecapTimeSkipped: 0, SegmentsSkipped: 0 },
Expand Down
7 changes: 7 additions & 0 deletions firefox/popup/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,13 @@ <h2 data-i18n style="color: #f78b24">PageSpecificTitle;Crunchyroll</h2>
<span class="slider round"></span>
</label>
</div>
<div class="line flex">
<p>Make Video Player fullscreen</p>
<label class="switch">
<input type="checkbox" id="CrunchyrollBigPlayer">
<span class="slider round"></span>
</label>
</div>
<p id="MenuVideo" class="button" data-i18n>OpenSharedSettings</p>
</div>
<div class="hidden" id="StatisticsSettings">
Expand Down
17 changes: 16 additions & 1 deletion firefox/popup/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,15 @@ <h2 data-i18n>PageSpecificTitle;Crunchyroll</h2>
</label>
</div>
<p class="description" data-i18n>ProfileSwitchDescription</p>
<div class="line flex">
<p data-i18n>BigPlayerSwitch</p>
<label class="switch">
<input type="checkbox" id="CrunchyrollBigPlayer">
<span class="slider round"></span>
</label>
</div>
<hr>
<p class="description" data-i18n>BigPlayerDescription</p>
</div>
<div id="StatisticsSettings" class="hidden">
<h2 data-i18n>SkippedTime</h2>
Expand Down Expand Up @@ -688,7 +697,13 @@ <h2 data-i18n>ImportSettings</h2>
<h2>Changelog</h2>
<div>
<div class="line flex">
<h2>1.1.29</h2>
<h2>1.1.30</h2>
<ul>
<li>Added Crunchyroll big video player mod.</li>
</ul>
</div>
<div class="line flex">
<p>1.1.29</p>
<ul>
<li>Fixed Prime filter paid movies.</li>
<li>Fixed Prime Continue Watching position.</li>
Expand Down
2 changes: 1 addition & 1 deletion firefox/popup/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const defaultSettings = {
showRating: true,
},
Disney: { skipIntro: true, skipCredits: true, watchCredits: false, speedSlider: true, showRating: true, selfAd: true },
Crunchyroll: { skipIntro: true, speedSlider: true, releaseCalendar: true, dubLanguage: null, profile: true },
Crunchyroll: { skipIntro: true, speedSlider: true, releaseCalendar: true, dubLanguage: null, profile: true, bigPlayer: true },
HBO: { skipIntro: true, skipCredits: true, watchCredits: false, speedSlider: true, showRating: true },
Video: { playOnFullScreen: true, epilepsy: false, userAgent: true },
Statistics: { AmazonAdTimeSkipped: 0, NetflixAdTimeSkipped: 0, IntroTimeSkipped: 0, RecapTimeSkipped: 0, SegmentsSkipped: 0 },
Expand Down
10 changes: 9 additions & 1 deletion firefox/skipper.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ if (isPrimeVideo || isNetflix || isDisney || isHotstar || isCrunchyroll || isHBO
showRating: true,
},
Disney: { skipIntro: true, skipCredits: true, watchCredits: false, speedSlider: true, showRating: true, selfAd: true },
Crunchyroll: { skipIntro: true, speedSlider: true, releaseCalendar: true, dubLanguage: null, profile: true },
Crunchyroll: { skipIntro: true, speedSlider: true, releaseCalendar: true, dubLanguage: null, profile: true, bigPlayer: true },
HBO: { skipIntro: true, skipCredits: true, watchCredits: false, speedSlider: true, showRating: true },
Video: { playOnFullScreen: true, epilepsy: false, userAgent: true },
Statistics: { AmazonAdTimeSkipped: 0, NetflixAdTimeSkipped: 0, IntroTimeSkipped: 0, RecapTimeSkipped: 0, SegmentsSkipped: 0 },
Expand Down Expand Up @@ -138,6 +138,7 @@ if (isPrimeVideo || isNetflix || isDisney || isHotstar || isCrunchyroll || isHBO
if (Crunchyroll?.profile) {
let pickInterval = setInterval(function () {
Crunchyroll_AutoPickProfile();
if (settings.Crunchyroll?.bigPlayer) Crunchyroll_bigPlayer();
}, 100);
// only click on profile on page load not when switching profiles
setTimeout(function () {
Expand Down Expand Up @@ -1269,6 +1270,13 @@ if (isPrimeVideo || isNetflix || isDisney || isHotstar || isCrunchyroll || isHBO
});
}
}
async function Crunchyroll_bigPlayer() {
let player = document.querySelector(".video-player-wrapper");
if (player) {
player.style.maxHeight = "calc(100vw / 1.7777)";
player.style.height = "calc(100vh - 60px)";
}
}
// HBO functions
const HBOObserver = new MutationObserver(HBO);
async function HBO() {
Expand Down

0 comments on commit 28eecdb

Please sign in to comment.