Explore Cosmical And Atomic's World In Realm Shattering
So, you're the designated "Game Website Maker" at your school? Nice dude, let me help you out a bit. Say your school just blocked embedded games on Google Sites at your school (Mine did, Chrome Extension: Linewize Connect, Version: 3.5.1), but somehow some sites still host games embedded. How are they doing this??? The answer is Google Scripts. Google Scripts (also known as "Apps Script") is a service by Google for writing macros and code for things like slideshows, docs, and other things, but they also allow you to write in HTML. This is what we will be using in this guide to unblock some embeds.
Let's do this step by step.
Go to Google Scripts (https://script.google.com/home)
Make a new project and add a new html file.
Put the game's code into the html file.
In the Code.gs file, you should have this, replacing "Index" with whatever the name of your html file is
function myFunction() {
doGet()
}
function doGet() {
return HtmlService.createHtmlOutputFromFile('index');
}
Make a new deployment with
Type: Web App
Description: Whatever You Want
Execute As: User running web app
Who can access: anyone with a Google account
Now simply add an embed to your website with the link given!
A test is shown below.
There you have it!
This post was made because I found the Google Site ezclasswork open on my friend's computer, noticed embeds were working, and decided to figure out what's up.
I have another post coming soon about how to get the source code from Google Script Web apps, if I ever figure it out.
Small Update: The source code is accessible directly on the /exec page for the web app, which you can get from the embed very easily, it just needs a few slight changes to run outside the environment.