Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ src/.shutdown
lib/rammerhead/src/client/hammerhead.min.js
lib/rammerhead/src/client/rammerhead.min.js
views/archive/gfiles/rarch/roms
.idea
.idea
.env
11 changes: 11 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="robots" content="noindex" />
<meta http-equiv="refresh" content="0; url=/">
<script>location.replace('/');</script>
<title>Not found — redirecting</title>
</head>
<body></body>
</html>
48 changes: 48 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Holy-Unblocker</title>
<style>
html,body{height:100%;margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,'Helvetica Neue',Arial}
.wrap{min-height:100%;display:flex;align-items:center;justify-content:center;background:#f7f9fc;color:#111}
.card{max-width:780px;padding:28px;border-radius:12px;background:#fff;box-shadow:0 6px 24px rgba(15,23,42,0.06);text-align:center}
pre{white-space:pre-wrap;word-break:break-word}
</style>
</head>
<body>
<div class="wrap">
<div class="card">
<h1>Holy-Unblocker — site is up</h1>
<p>If you see this, GitHub Pages is serving files correctly.</p>
<p>Repository: <a href="https://github.com/MaIlKiD55/Holy-Unblocker" target="_blank" rel="noopener">MaIlKiD55/Holy-Unblocker</a></p>
<p>If this page is blank for you, try a hard reload (Ctrl/Cmd+Shift+R) or open in a private window.</p>
<pre id="debug"></pre>
</div>
</div>

<script>
(function(){
var dbg=document.getElementById('debug');
function log(m){ if(dbg) dbg.textContent += m + '\n'; }

// Ensure document is visible in case something hid it
try{ document.documentElement.style.display = 'block'; }catch(e){}

// Unregister any service workers that might be serving a stale or blank page
if ('serviceWorker' in navigator) {
navigator.serviceWorker.getRegistrations().then(function(regs){
if(!regs || regs.length===0){ log('No service workers registered'); return; }
regs.forEach(function(r,i){ r.unregister().then(function(ok){ log('Unregistered SW#'+i+': '+ok); }).catch(function(e){ log('Failed to unregister SW#'+i+': '+e); }); });
}).catch(function(e){ log('Error getting SW registrations: '+e); });
} else {
log('Service workers not supported');
}

// Helpful console message
if(console && console.log) console.log('Holy-Unblocker: index loaded; attempted to unregister service workers.');
})();
</script>
</body>
</html>