diff --git a/README.md b/README.md index 06590fc..9db0ac8 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ This extension also allows you to zoom in or out of video (similar to how SMPlay ### Permanent install -[v0.9.7 — Experimental version — download from here](http://tamius.net/ultrawidify) — If 30 minutes old is stable enough for you, this is it. This version is pretty much code from this repo. It's also unlisted so I don't have to go through AMO for every minor change. +[v0.9.8 — Experimental version — download from here](http://tamius.net/ultrawidify) — If 30 minutes old is stable enough for you, this is it. This version is pretty much code from this repo. It's also unlisted so I don't have to go through AMO for every minor change. [v0.9.1 — Regular version — download from AMO](https://addons.mozilla.org/en/firefox/addon/ultrawidify/) — more stable and with AMO's approval. No experimental features either. @@ -84,5 +84,9 @@ Keybind `a` just doesn't work at all, so no 16:10. ###v0.9.7 +* No new features added. Version number got incremented due to an attempt at autoupdating (which got foiled due to lack of HTTPS) + +###v0.9.8 + * Added GUI/buttons on the player. * Script now only loads on youtube pages (iframes included) (before, this script would run on any page) diff --git a/js/uw.js b/js/uw.js index f12fa91..0164675 100644 --- a/js/uw.js +++ b/js/uw.js @@ -118,6 +118,8 @@ function addCtlButtons(provider_id){ console.log("uw::addCtlButtons | buttons added"); } +// Ta funkcija se proži, ko vstopimo ali izstopimo iz celozaslonskega načina +// This function gets triggered by full screen state change function onFullScreenChange(){ // Popravimo velikost gumbov // Let's fix the button size: @@ -130,32 +132,17 @@ function onFullScreenChange(){ } + +// Ta funkcija se proži, ko gremo v celozaslonski način +// This function triggers when we enter fullscreen mode function onFullscreenOn(){ -// TODO: show buttons -// var button_row = document.getElementsByClassName("ytp-right-controls")[0]; -// -// console.log("uw:: Full screen is now on"); -// var t = document.createTextNode("but"); -// -// var b_fitw = document.createElement('button'); -// -// b_fitw.appendChild(t); -// -// -// // b_fitw.id = "uw_b_fitw"; -// b_fitw.className = "ytp_button"; -// b_fitw.onclick = function() { changeCSS("fitw"); }; -// // b_fitw.appendChild(""); -// -// button_row.appendChild(b_fitw); -// -// // var b_fith = document.createElement('button'); -// -// console.log("uw:: added buttons"); } + +// Ta funkcija se proži, ko gremo ven iz celozaslonskega načina +// This function triggers when we leave fullscreen mode function onFullscreenOff(){ - //TODO: hide buttons + } function changeCSS(what_do){ @@ -453,7 +440,9 @@ function changeCSS_nofs(what_do, video, player){ left = (player.width - w) / 2; if (h > player.height * 4){ - console.log("okay mate you took this shit way too far now. I'm not doing shit"); + console.log("But this is bigger than some rooms, this is bigger than some people's flats!"); + // Insert obligatory omnishambles & coffee machine quote here + console.log("(No really, mate, you took this way too far already)"); return; } } diff --git a/manifest.json b/manifest.json index ad4964d..14c6af7 100644 --- a/manifest.json +++ b/manifest.json @@ -4,6 +4,11 @@ "name": "Ultrawidify", "version": "0.9.8", + "icons": { + "32":"icons/uw-32.png", + "64":"icons/uw-64.png" + }, + "description": "Aspect ratio fixer for youtube that works around some people's disability to properly encode 21:9 (and sometimes, 16:9) videos.", diff --git a/ultrawidify.zip b/ultrawidify.zip new file mode 100644 index 0000000..b2e7df7 Binary files /dev/null and b/ultrawidify.zip differ