Hack Forums
Remove "http://" From "Insert a Video" - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hack Forums Official Information (https://hackforums.net/forumdisplay.php?fid=1)
+--- Forum: Site News (https://hackforums.net/forumdisplay.php?fid=2)
+---- Forum: Suggestions and Ideas (https://hackforums.net/forumdisplay.php?fid=134)
+---- Thread: Remove "http://" From "Insert a Video" (/showthread.php?tid=5889053)



Remove "http://" From "Insert a Video" - Business - Sep 26, 2018

When you go to insert a video, there is already "http://" filled in. If we remove this, it will let users simply copy paste their URLs into the space and be done with it. This promotes simplicity and efficiency IMO. I know it has little importance, but I deal with it often. I get you can just remove it before you paste the link, but we could remove that step.

How it looks if you just copy / paste now:


[vid=youtube]https://www.youtube.com/watch?v=TLeLgq2_B40http://[/video] (breaks link)


My proposal:


[vid=youtube]https://www.youtube.com/watch?v=TLeLgq2_B40http://[/video]


RE: Remove "http://" From "Insert a Video" - Nachfolger - Sep 27, 2018

How hard is it to delete the 7 characters from the alert before pasting your URL?


RE: Remove "http://" From "Insert a Video" - Business - Sep 27, 2018

(Sep 27, 2018 06:38 AM)Nachfolger Wrote:  How hard is it to delete the 7 characters from the alert before pasting your URL?

"This promotes simplicity and efficiency IMO. I know it has little importance, but I deal with it often. I get you can just remove it before you paste the link, but we could remove that step."

It's just a small fix. Why does it need to be there? Who's going to type the rest of their link after it? Everyone just copy/pastes so I thought it would save a step. Not a big deal just something I noticed.


RE: Remove "http://" From "Insert a Video" - Elitas - Sep 27, 2018

And also potentially creates massive security risks.

Of course we could search for https:// or http:// and not append these prefixes in the event that they exist, but actually removing it altogether is dumb.
Imagine if I could make my URL "javascript:alert('ELITAS');"; now everyone on that page will see an alert box saying "ELITAS". Not 100% sure if this XSS would be possible with youtube videos, but it still creates numerous other issues.

So yeah, not a great solution.


RE: Remove "http://" From "Insert a Video" - Hunion - Sep 27, 2018

I think the https:// is there for new users. That shows them that all they have to do for the video to appear is to paste a full link in there.


RE: Remove "http://" From "Insert a Video" - ⁠Cammy - Sep 27, 2018

(Sep 27, 2018 09:02 AM)Hunion Wrote:  I think the https:// is there for new users. That shows them that all they have to do for the video to appear is to paste a full link in there.

Then a better solution would be to use the placeholder attribute:

[Image: 2018-09-27_18-57-16.gif]


RE: Remove "http://" From "Insert a Video" - Omniscient - Sep 27, 2018

This is more of a MyBB problem with their WYSIWYG. Altering the SCeditor is a pain in the ass. I think it even requires core file edits which I don't bother with over small things like this.