This is a static website clone of the Unblocked Games Resources site. It is designed to be hosted on GitHub Pages.
index.html: The main landing page listing all games.game.html: The player page that loads a specific game.metadata.json: A JSON database containing the list of games (source file).data.js: The encrypted game data loaded by the browser.style.css: The styling for the website.script.js: The logic to fetch games from the encrypted content and render them.
To add more games or update existing ones, you only need to edit the metadata.json file and run encryption.
- Open
metadata.json. - Add a new object to the array in the following format:
{
"id": "unique-game-id",
"title": "Game Title",
"image": "URL_TO_THUMBNAIL_IMAGE",
"url": "URL_TO_GAME_EMBED_OR_IFRAME",
"description": "Short description of the game."
}- Run
python encrypt_content.pyto regeneratedata.js.
Important: metadata.json is the source of truth, but data.js is what the website actually loads. Never deploy metadata.json to production if you want to avoid filters.
- Create a new repository on GitHub.
- Push all these files to the repository.
- Go to the repository Settings.
- Navigate to the Pages section (usually on the left sidebar).
- Under Source, select
Deploy from a branch. - Select your main branch (usually
mainormaster) and the/ (root)folder. - Click Save.
- GitHub will provide you with a URL where your site is live.
- Styling: Edit
style.cssto change colors, fonts, and layout. - Content: Edit
index.htmlto change the header, footer, or intro text.