[
  {
    "path": ".gitignore",
    "content": ".DS_Store"
  },
  {
    "path": "README.md",
    "content": "# buildspace os\n\n## setup\n### you don't need to write any code or know how to code to set this up. It will take 2 mins max — promise\n\n**we even made a 2 min vid for you**\n\n[installing buildspcae os](https://github.com/buildspace/buildspace-os/assets/13204620/c19da4b4-1266-4772-ba4e-0fdd795df9f4)\n\n### 1. download\nclick the green \"Code\" button and select \"Download ZIP\". make sure to extract the download in a safe spot!<br>\n![](https://i.imgur.com/TlzzORw.png)\n\n### 2. turn on Developer mode\nin your browser head to the \"Extensions\" section. this can be found in the settings portion of your browser! checkout the screenshot below:<br>\n![](https://i.imgur.com/igEIfnt.png)\n\nonce you get there you'll see \"Developer mode\" in the top right. make sure to toggle that **on** and then you'll see new options (we're gonna be using \"Load unpacked\")<br>\n![](https://i.imgur.com/l8GLD4b.png)\n\n### 3. add the app to your browser\nyou're at the home stretch! press the \"Load unpacked\" option and then go to the folder where you saved buildspace os. it should look something like this:<br>\n![](https://i.imgur.com/ztCAc8i.png)\n\nonce you select it you should see this (nice you did it!)<br>\n![](https://i.imgur.com/VmpDMFq.png)\n\n### 4. open a new tab\nnow you can see this thing in action! Open a new tab and you'll notice that there is a prompt saying that the page was changed by the buildspace os extension. **Make sure to select keep it or it will not work.**<br>\n![](https://i.imgur.com/UtvBBmW.png)\n\n## got questions?\nfor any questions please send an email to support@buildspace.so\n"
  },
  {
    "path": "background.js",
    "content": "chrome.tabs.onCreated.addListener(function(tab) {\n  if (!tab.url) {\n    // If the URL is not available, wait for the tab to be updated\n    chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, updatedTab) {\n      // Ensure the event is for the same tab and the URL has changed\n      if (tabId === tab.id && changeInfo.url) {\n        console.log(\"Updated tab URL:\", changeInfo.url);\n        if (changeInfo.url.startsWith(\"chrome://startpageshared/\")) {\n          chrome.tabs.update(tab.id, { url: \"tab_override.html\" });\n        }\n      }\n    });\n  }\n});"
  },
  {
    "path": "manifest.json",
    "content": "{\n  \"name\": \"buildspace os\",\n  \"description\": \"buildspace os — your new home for nights and weekends\",\n  \"version\": \"1.0.0\",\n  \"manifest_version\": 3,\n  \"icons\": {\n    \"48\": \"assets/48.png\",\n    \"128\": \"assets/128.png\"\n  },\n  \"permissions\": [\"tabs\"],\n  \"background\": {\n    \"service_worker\": \"background.js\"\n  },\n  \"chrome_url_overrides\": {\n    \"newtab\": \"tab_override.html\"\n  }\n}"
  },
  {
    "path": "tab_override.html",
    "content": "<!DOCTYPE html>\n<html>\n\n<head>\n    <title>buildspace os</title>\n    <style>\n        body {\n            background-color: #000000;\n            margin: 0;\n        }\n\n        .container {\n            display: flex;\n            flex-direction: column;\n            align-items: center;\n            justify-content: center;\n            height: 100vh;\n        }\n\n        .container iframe {\n            border: 0;\n        }\n    </style>\n</head>\n\n<body>\n    <div class=\"container\">\n        <iframe src=\"https://buildspace.so/home\" width=\"100%\" height=\"100%\"></iframe>\n    </div>\n</body>\n\n</html>"
  }
]