Youtube
techstepgenr8tion
Veteran
Joined: 6 Feb 2005
Age: 45
Gender: Male
Posts: 24,496
Location: 28th Path of Tzaddi
Does anyone know exactly what's going on with this? Is it individual browsers that are cracking and causing a blank space instead of a video, is there a site plugin that needs to be updated, or are we trying to phase it out for other reasons? I'm asking for the sake of knowing how to post videos going forward.
_________________
The loneliest part of life: it's not just that no one is on your cloud, few can even see your cloud.
The site has started to automatically default to https but it's
not fully compatible.
</div>
The browsers are seeing these http links (mixed content)
in the code and are disabling all possible unsafe content on the page.
To get youtube videos to work in Chrome you need to click on the shield
to the right in the address bar and select Load unsafe scripts.
In Firefox, click on the lock icon to the left of the address bar, then show connection details,
then disable protection for now.
More information about mixed content from Mozilla
techstepgenr8tion
Veteran
Joined: 6 Feb 2005
Age: 45
Gender: Male
Posts: 24,496
Location: 28th Path of Tzaddi
In effect then I'd call that something pretty close to phasing out video.
While I don't know what programming platform this site is built on (nor should Alex tell us - that makes it prone for hacking) it seems like this should just need a piece of alternate script for handling https vs http. It's great that I can click on the shield and allow the script but that solves the problem for one person.
_________________
The loneliest part of life: it's not just that no one is on your cloud, few can even see your cloud.
While I don't know what programming platform this site is built on (nor should Alex tell us - that makes it prone for hacking) it seems like this should just need a piece of alternate script for handling https vs http. It's great that I can click on the shield and allow the script but that solves the problem for one person.
The whole site needed to be updated before defaulting to https.
For the Youtube problem in particular it is the code that embeds
the user Youtube content that needs to be updated.
If you look at the code below you will see it's creating http
links in the data and value fields.
An admin needs to fix this!
Here is a proof of concept Tampermonkey script that is successfully
changing the data and value fields to https so that embedded
Youtube content is visible again.
// @name Wrongplanet HTTPS video fix
// @description Fix youtube videos on Wrongplanet
// @match https://wrongplanet.net/*
// @version 1.0.0
// @author Soliloquist
// ==/UserScript==
(function() {
'use strict';
var els = document.getElementsByTagName("p");
for(var i = 0, l = els.length; i < l; i++) {
var el = els[i];
el.innerHTML = el.innerHTML.replace(/data="http:/, 'data="https:');
}
var els1 = document.getElementsByTagName("p");
for(var k = 0, l1 = els1.length; k < l1; k++) {
var el1 = els1[k];
el1.innerHTML = el1.innerHTML.replace(/value="http:/, 'value="https:');
}
})();
techstepgenr8tion
Veteran
Joined: 6 Feb 2005
Age: 45
Gender: Male
Posts: 24,496
Location: 28th Path of Tzaddi
I don't really want to ask many questions about how the site's programmed but I might suggest that he'd consider moving to a SPA or MVC pattern if he isn't on one already. One of the added benefits is being able to swap things out a bit easier.
_________________
The loneliest part of life: it's not just that no one is on your cloud, few can even see your cloud.
CockneyRebel
Veteran
Joined: 17 Jul 2004
Age: 50
Gender: Male
Posts: 116,945
Location: In my little Olympic World of peace and love
Hommage a Maria, I just pop up to the little green lock in the URL (Firefox), click on it, and deprotect the page long enough to play the video (then re-protect it).
Or I hit the quote button and pick up the URL from that and play in a separate tab.
I'm putting the direct link in now under any YouTube I embed. Did that for awhile on the jazz thread too.
_________________
"I believe you find life such a problem because you think there are the good people and the bad people," said the man. "You're wrong, of course. There are, always and only, the bad people, but some of them are on opposite sides."
-- Terry Pratchett, Guards! Guards!
Hi, I've seen this problem too.
I also tried to post the direct link, but... sadly, because I'm newbie, I'm not able to do it (supposedly to preventing SPAM).
I think it's very frustrating, because I like to post with multimedia content in musical and video threads (as I do in other sites), and I don't like to install more complements and stuff on my browser (Chrome) just to get the site work fine...
So, are there practical alternatives?
_________________
Signature under construction... sorry for the inconveniences.
Similar Topics | |
---|---|
my YouTube channel
in Bipolar, Tourettes, Schizophrenia, and other Psychological Conditions |
19 Oct 2024, 8:49 am |
Suggest a YouTube Channel |
07 Nov 2024, 8:12 pm |
Model Train Layouts On Youtube. |
14 Nov 2024, 3:44 pm |
YouTube Video, But Maybe Not Universally Appealing |
08 Nov 2024, 10:11 am |