tag:blogger.com,1999:blog-3891434218564545511.post4619178870511583908..comments2024-03-28T19:56:42.305-05:00Comments on Alexander Pruss's Blog: Fix aspect ratio of online videosAlexander R Prusshttp://www.blogger.com/profile/05989277655934827117noreply@blogger.comBlogger19125tag:blogger.com,1999:blog-3891434218564545511.post-8500727714755611972023-08-14T05:05:31.786-05:002023-08-14T05:05:31.786-05:00wow thank you so muchwow thank you so muchBobflobhttps://www.blogger.com/profile/13995214756264317018noreply@blogger.comtag:blogger.com,1999:blog-3891434218564545511.post-67749929764068551442023-02-04T19:46:55.429-06:002023-02-04T19:46:55.429-06:00Thank you so much! Easy and effective. It just wor...Thank you so much! Easy and effective. It just works.Rodolfohttps://www.blogger.com/profile/13205432628897502602noreply@blogger.comtag:blogger.com,1999:blog-3891434218564545511.post-43956946168940600482022-11-21T12:01:06.726-06:002022-11-21T12:01:06.726-06:00Can confirm that both of them work (Firefox). Also...Can confirm that both of them work (Firefox). Also big thanks for introducing me to the concept of bookmarklets, I'm mindblown that I've never seen it before and already found other ways to make my life easier with them c:4eeeehttps://www.blogger.com/profile/00261916354071046477noreply@blogger.comtag:blogger.com,1999:blog-3891434218564545511.post-16003982740108981002021-10-20T05:28:01.635-05:002021-10-20T05:28:01.635-05:00this is wonderful! I can't thank you enough.
...this is wonderful! I can't thank you enough.<br /><br />I created 2 bookmarks on the bookmarks toolbar and named them "4:3" and "1,1", changed the default values accordingly and now I can press them and change everything at will without refresh! Maybe I will make a "16:9" button too, because there are many "anamorphic" videos also.<br /><br />cheers!vrekman32https://www.blogger.com/profile/04856783994719923838noreply@blogger.comtag:blogger.com,1999:blog-3891434218564545511.post-84727402502726625582021-10-04T13:16:18.964-05:002021-10-04T13:16:18.964-05:00Does the popup show up?Does the popup show up?Alexander R Prusshttps://www.blogger.com/profile/05989277655934827117noreply@blogger.comtag:blogger.com,1999:blog-3891434218564545511.post-45878209063150976182021-10-03T14:08:40.653-05:002021-10-03T14:08:40.653-05:00It seems not to be working anymore.It seems not to be working anymore.CzechRiothttps://www.blogger.com/profile/12009450898448705827noreply@blogger.comtag:blogger.com,1999:blog-3891434218564545511.post-55101112157290499262021-04-16T14:17:25.676-05:002021-04-16T14:17:25.676-05:00It works for me on Youtube.
This is what my bookm...It works for me on Youtube.<br /><br />This is what my bookmark says:<br /><br />javascript:(function()%7Bvar vid %3D document.getElementsByTagName('video')%3Bif (vid.length %3D%3D 0) %7Balert("No video elements found in this page.")%3B%7Delse %7Bvar rate %3D prompt("Enter rate"%2C vid%5B0%5D.playbackRate)%3Bif (rate !%3D null)for(let v of vid)v.playbackRate %3D rate%3B%7D%7D)()Alexander R Prusshttps://www.blogger.com/profile/05989277655934827117noreply@blogger.comtag:blogger.com,1999:blog-3891434218564545511.post-15764853533682902722021-04-16T13:31:27.840-05:002021-04-16T13:31:27.840-05:00By the way, the Video Rate one doesn't seem to...By the way, the Video Rate one doesn't seem to work. If I go to any Youtube or Dailymotion video, click on it, and enter a number, the whole page simply reloads and displays the number I entered. I tried it on Firefox and Chrome.Niffiwanhttps://www.blogger.com/profile/13690126836684453488noreply@blogger.comtag:blogger.com,1999:blog-3891434218564545511.post-63976758833508253192021-04-16T01:20:44.992-05:002021-04-16T01:20:44.992-05:00Yes, I too think that adjusting the scaling of the...Yes, I too think that adjusting the scaling of the iframe itself (just like in your code, but instead of grabbing all video tags, I grab the iframe's ID) is the simplest thing and seems to work well. I'm also giving it a set width and height and "overflow: hidden;".<br /><br />I'm still tinkering with it a bit (I also want to make it work with fullscreen), but I'll post it here when I'm done.Niffiwanhttps://www.blogger.com/profile/13690126836684453488noreply@blogger.comtag:blogger.com,1999:blog-3891434218564545511.post-7814398059526468042021-04-14T10:04:54.410-05:002021-04-14T10:04:54.410-05:00I don't know. One time I was adjusting things ...I don't know. One time I was adjusting things in an iframe, I just ended up going to the javascript console and grabbing the video element and adjusting it manually.Alexander R Prusshttps://www.blogger.com/profile/05989277655934827117noreply@blogger.comtag:blogger.com,1999:blog-3891434218564545511.post-66597153152118095942021-04-13T23:56:26.245-05:002021-04-13T23:56:26.245-05:00Is there any way to get it to work for embedded vi...Is there any way to get it to work for embedded videos in an iframe, if it is not same-origin? <br /><br />I was hoping to maybe make it work with my site, animatsiya.net, because some studios annoyingly upload their videos in the wrong aspect ratio. But when I test it, it simply returns the "No video elements found in this page" message.Niffiwanhttps://www.blogger.com/profile/13690126836684453488noreply@blogger.comtag:blogger.com,1999:blog-3891434218564545511.post-69012013510063478852021-04-13T23:07:21.189-05:002021-04-13T23:07:21.189-05:00Thank you so much! This is really useful!Thank you so much! This is really useful!Niffiwanhttps://www.blogger.com/profile/13690126836684453488noreply@blogger.comtag:blogger.com,1999:blog-3891434218564545511.post-85053690726045771682020-11-30T12:16:58.220-06:002020-11-30T12:16:58.220-06:00Thanks a lot. This is wonderful. Something I was l...Thanks a lot. This is wonderful. Something I was looking for almost a decade.Saqibhttps://www.blogger.com/profile/05439590831019548843noreply@blogger.comtag:blogger.com,1999:blog-3891434218564545511.post-40427823022091024942020-07-30T08:38:19.538-05:002020-07-30T08:38:19.538-05:00Apparently, there are people who find black bars r...Apparently, there are people who find black bars really annoying. I guess they feel like their screen is wasting space. I find aspect ratio mismatch really annoying. Even 5-10% bothers me (like on my Kindle Fire). Alexander R Prusshttps://www.blogger.com/profile/05989277655934827117noreply@blogger.comtag:blogger.com,1999:blog-3891434218564545511.post-46020291025853207272020-07-29T20:06:43.612-05:002020-07-29T20:06:43.612-05:00Oh my word. This is the consummate solution. Thank...Oh my word. This is the consummate solution. Thank you very much for posting this for others to use.<br /><br />This is oh too common on the likes of YouTube with old or historic TV/film footage. They get loaded as widescreen. I simply followed Alexander's instructions on Firefox, entered a ratio of 4:3 and Blammo, the world is back in ratio. <br /><br />I wonder if a generation of viewers are wondering why everyone prior to the 1990's was short and fat.Cassettehttps://www.blogger.com/profile/17687842535164089650noreply@blogger.comtag:blogger.com,1999:blog-3891434218564545511.post-71099240640455078772020-07-29T20:00:20.848-05:002020-07-29T20:00:20.848-05:00This comment has been removed by the author.Cassettehttps://www.blogger.com/profile/17687842535164089650noreply@blogger.comtag:blogger.com,1999:blog-3891434218564545511.post-68039477409313559672020-05-27T02:50:42.890-05:002020-05-27T02:50:42.890-05:00Thanks, this is the easiest solution for changing ...Thanks, this is the easiest solution for changing the aspect ratio of videossahushttps://www.blogger.com/profile/14398766289786473867noreply@blogger.comtag:blogger.com,1999:blog-3891434218564545511.post-79825014400604700952020-03-30T00:50:51.260-05:002020-03-30T00:50:51.260-05:00Wow, this actually worksWow, this actually worksRichiehttps://www.blogger.com/profile/04494688538177212903noreply@blogger.comtag:blogger.com,1999:blog-3891434218564545511.post-69210055474833417602018-08-12T08:51:58.676-05:002018-08-12T08:51:58.676-05:00An example of area preservation mapping...An example of area preservation mapping...Philip Randhttps://www.blogger.com/profile/09143527524267821692noreply@blogger.com