HOME | DD
#content #embed #external #games #howto #iframe #userscript #html5
Published: 2016-04-20 04:22:48 +0000 UTC; Views: 1872; Favourites: 5; Downloads: 0
Redirect to original
Description
greasyfork.org/en/scripts/1883… (click the question mark button to see "How to install ".)This script allows external content to be shown on DeviantArt deviations as well as sta.sh .
The primary reason I made this was to allow html5 games to appear right on the deviation page, but you can use it to show just about anything.
To use it just include a link in your description(or within the text, if it's a journal/text entry).
There are 2 types of embed links.
If you use option #1 you can specify the size of the embed(optional).
eg; [iframe-embed width="800" height="600"]
To see it in action I've put my "Challenge of 9 " game embedded on this deviation, once the userscript is installed a loading box will appear on top of the display image above, click "load content" and the game will play.
[iframe-embed width="800" height="600"]
Hopefully DeviantArt will give us more options to submit interactive content(more embed profiles would be nice too).
Flash is old, slow, broken, and full of security issues, and it would be nice for DeviantArt to provide a better alternative.
Related content
Comments: 16
ryedai1 [2021-11-18 02:28:47 +0000 UTC]
👍: 0 ⏩: 0
ThomLaurent [2016-06-16 23:56:51 +0000 UTC]
Nice workaround for deviantart embedding restriction/lack, but it's not very convenient (the user have to download a script and download link can't be placed in the image :/ )
👍: 0 ⏩: 1
rsgmaker In reply to ThomLaurent [2016-06-17 00:32:46 +0000 UTC]
Yeah it's not that convenient, DeviantArt would need to implement something themselves to have it be a user friendly experience(I'm doubting they'll ever add support though).
👍: 0 ⏩: 1
ThomLaurent In reply to rsgmaker [2016-06-18 07:14:30 +0000 UTC]
It's too general for them, for example they accept sketchfab iframe but not some random site iframe
👍: 0 ⏩: 1
rsgmaker In reply to ThomLaurent [2016-06-18 21:42:17 +0000 UTC]
Well I don't mean this exact implementation. They would likely host the web app on their own servers, and point the iframe to where it's stored. Or like the example you gave, add more journal embed profiles like maybe a "github pages" embed profile.
👍: 0 ⏩: 1
ThomLaurent In reply to rsgmaker [2016-06-20 09:02:17 +0000 UTC]
Iframes can be very weighty, I don't think they ever opt for this solution ^^
👍: 0 ⏩: 1
rsgmaker In reply to ThomLaurent [2016-06-22 02:14:44 +0000 UTC]
They already use iframes for soundcloud and youtube embedding(possibly all of them do, i'm too lazy to check though).
👍: 0 ⏩: 1
ThomLaurent In reply to rsgmaker [2016-06-23 16:32:12 +0000 UTC]
Oh I see, so I guess DA do a simple link to heavy contents (music/videos)
I think game iframes would offer some "vulnerabilities" to DA
👍: 0 ⏩: 1
rsgmaker In reply to ThomLaurent [2016-06-23 22:37:03 +0000 UTC]
iframes only have as much power as the website defines. just like how DA sets flash files to sandbox mode. They could try to give a few permissions but disallow any info from the DA page itself.(I've tweaked the permissions of the userscript, DA may decide to do stricter rules though.)
As long as the browser the user uses is up-to-date there shouldn't be any vulnerabilities.Of course they should ask the user each time whether or not to even load the iframe, and let them review the url before deciding(basically what I've done with my system).
edit:with all the security issues of flash that've been popping up, the iframe scenario might actually be more secure in the end.
👍: 0 ⏩: 1
ThomLaurent In reply to rsgmaker [2016-06-24 19:51:34 +0000 UTC]
Hopefully one day there will be a nice embedding for iframes on DA
👍: 0 ⏩: 0
Drac32Drac [2016-04-20 05:45:45 +0000 UTC]
So, in theory I could make a Unity game, export it to Html 5, and use this to actually run it right within Deviant Art?
👍: 0 ⏩: 1
rsgmaker In reply to Drac32Drac [2016-04-21 00:17:51 +0000 UTC]
I just tested it and it works .
👍: 0 ⏩: 1
Drac32Drac In reply to rsgmaker [2016-04-21 00:27:46 +0000 UTC]
Oh, I just realized that even this deviation was supposed to have a playable game within it. I haven't seen it yet and I've tried with both chrome and firefox. And I don't see it working in the other test either. I never got a loading box asking for permission.
👍: 0 ⏩: 1
rsgmaker In reply to Drac32Drac [2016-04-21 00:35:39 +0000 UTC]
It will probably come up if you press refresh, the script currently doesn't handle the fancy deviation loading code when you open a deviation from another location.
👍: 0 ⏩: 1
Drac32Drac In reply to rsgmaker [2016-04-21 00:44:34 +0000 UTC]
I have refreshed multiple times. No dice.
👍: 0 ⏩: 1
rsgmaker In reply to Drac32Drac [2016-04-21 01:25:04 +0000 UTC]
I've updated the script to no longer require refreshing the page.
I'm not sure if it will fix the issue you're having though.
👍: 0 ⏩: 0























