View your favourite content on the SteemMakers website

Words
481
Reading
3 min
Listen
Play
8y

alt

SteemMakers is a community which focuses on uniting, helping and rewarding makers and DIYers on the Steem blockchain. You can find more info about us and how to contact us on our website www.steemmakers.com.

Video support

Makers very often make videos about how they make something or how what they have made functions. Video is an essential functionality. It took a while to come to this point but now we finally can read blog posts on our own website and video is supported as well. We support the most popular ones that are also supported by steemit and busy. DTube and DLive were the easiest ones because they link to their own websites. Youtube was a bit more tricky because those are shown on the website itself.

Untitled.png

Security comes first

In my last update I briefly explained XSS. Adding new features to the website required further effort in this aspect. We now have all the same security features in place as steemit, even more stringent in some places. We verified this with busy as well to be on the safe edge.

Embedding the YouTube videos is done with the iframe tag which allows showing external content on a website. This makes it sensitive to create all kind of security holes allowing third parties to inject their nasty stuff. As an example someone could post an iframe like this:

<I FRAME SRC="javascript:alert('Got you!');"></IFRAME>

Instead of a simple alert they'd probably use some malicious script. One of the checks we have put in place to prevent this from hurting you is to only allow youtube with lovely regexes like this:

sourceAttribute.match(/^(https?:)?\/\/www.youtube.com\/embed\/.*/i);

Styling

Fluid design and mobile first have been keywords from the beginning for our site. A lot of makers use their phone to look up information on the go so we want to make sure it displays as good as possible on all screen sizes. Video is not as easy to scale as for example text and images. I resorted to a well known trick to get this working.

testje.gif

Live

We're now sufficiently happy with the security and features to release this new feature on our website. You no longer have to navigate away to steemit or busy to read your favorite content. Head over to www.steemmakers.com and have a look for yourself.

What will come next?

Some time for chatter, some reflection and adding some details to the articles. We don't show the author name, posting date, etc. Also the article preview needs some updating. Or maybe the bot, who knows, lot's of fun stuff to do, too little time to do it.

Help us out

Anyone interested is free to join and help out, all work is available on Github. More information can be found on our website www.steemmakers.com, have a look and join us on Discord!

Utopian proof of work: commit.



Posted on Utopian.io - Rewarding Open Source Contributors

View your favourite content on the SteemMakers website | Ecency