Skip to content

Commit

Permalink
fix sitelock and add games by @.slayer
Browse files Browse the repository at this point in the history
  • Loading branch information
Nate committed Sep 23, 2023
1 parent ba84c16 commit 512371b
Show file tree
Hide file tree
Showing 13 changed files with 86 additions and 42 deletions.
104 changes: 68 additions & 36 deletions 0/g/games.json
Original file line number Diff line number Diff line change
Expand Up @@ -448,31 +448,37 @@
"url": "./stack/",
"imageSrc": "./stack/game/stack.png",
"name": "Stack",
"tags":"html5, kids, point-and-click, action"
"tags": "html5, kids, point-and-click, action"
},
{
"url": "./stickmanhook/",
"imageSrc": "stickmanhook/unnamed.jpg",
"name": "Stickman Hook",
"tags":"html5, intense, singleplayer, action, point-and-click"
"tags": "html5, intense, singleplayer, action, point-and-click"
},
{
"url": "neonswing/",
"imageSrc": "https://play-lh.googleusercontent.com/aUUqrS7i6UFtiG7oQdrfRdyCWN2XXV13DVeJTHmYub7Qdz7lQ6XyGJpB7RaeNlyXPw",
"name": "Neon Swing",
"tags":"html5, intense, singleplayer, action, point-and-click"
"tags": "html5, intense, singleplayer, action, point-and-click"
},
{
"url": "./pooreddie/",
"imageSrc": "pooreddie/game/quj6uler.bmp",
"name": "Poor Eddie",
"tags":"html5, intense, singleplayer, action, point-and-click"
"tags": "html5, intense, singleplayer, action, point-and-click"
},
{
"url": "/game/?swingo",
"imageSrc": "/game/img/swingo.avif",
"name": "Swingo",
"tags": "html5, intense, singleplayer, action, point-and-click"
},
{
"url": "/game/?dumb-ways-to-die",
"imageSrc": "https://play-lh.googleusercontent.com/jrRzz98Tb0JK1XuO0Yw01Ep1zVQDM14IDl4fq21nMpmt7yAXfXwSF0xlc60Hv_FUAx79",
"name": "Dumb ways to Die",
"tags":"unity, intense, singleplayer, action, point-and-click"
"tags": "unity, intense, singleplayer, action, point-and-click"
},
{
"url": "./uno/",
Expand All @@ -499,6 +505,11 @@
"imageSrc": "./superhot/game/splash.jpg",
"name": "Superhot"
},
{
"url": "/game/?masked-forces",
"imageSrc": "/game/img/masked-forces.jpg",
"name": "Masked Forces"
},
{
"url": "./shellshockers/",
"imageSrc": "./shellshockers/game/egg.webp",
Expand Down Expand Up @@ -579,7 +590,7 @@
"url": "./BloonsTD3/",
"imageSrc": "./BloonsTD3/game/splash.webp",
"name": "BTD 3",
"tags":"flash, tower-defense, ninjakiwi, btd, bloons"
"tags": "flash, tower-defense, ninjakiwi, btd, bloons"
},
{
"url": "./BloonsTD4/",
Expand Down Expand Up @@ -613,6 +624,11 @@
"imageSrc": "stair-race3d/ys0ffene.bmp",
"name": "Stair Race 3D"
},
{
"url": "/game/?burnin-rubber-5-xs",
"imageSrc": "/game/img/burnin-rubber-5-xs.avif",
"name": "Burnin Rubber 5 XS"
},
{
"url": "./drive-mad/",
"imageSrc": "./drive-mad/game/webapp/logo.avif",
Expand Down Expand Up @@ -823,36 +839,41 @@
"imageSrc": "/0/g/snowball.io/game/img/unnamed.png",
"name": "Snowball.io"
},
{
"url": "/0/g/hole.io/",
"imageSrc": "./hole.io/game/imgupscaler.jpg",
"name": "Hole.io"
},
{
"url": "/0/g/hole.io-scratch/",
"imageSrc": "./hole.io-scratch/game/scratch.png",
"name": "Hole.io (Scratch)"
},
{
"url": "/0/g/smashkarts/",
"imageSrc": "/0/g/smashkarts/game/images/icon-512.png",
"name": "Smash Karts"
},
{
"url": "./draw-the-hill/",
"imageSrc": "/0/g/draw-the-hill/game/icons/icon-512.png",
"name": "Draw the Hill"
},
{
"url": "/0/g/retrobowl/",
"imageSrc": "https://play-lh.googleusercontent.com/WRM5Y1xZmzcCP1YtO5zl6G2g7CU5c5ZfjX4UVrgi1bpNgkfy-wuB-bQx3kkeRfaGYQ",
"name": "Retro Bowl"
},
{
"url": "./fallguys/",
"imageSrc": "/0/g/fallguys/game/splash.png",
"name": "Fall Guys"
},
{
"url": "/0/g/hole.io/",
"imageSrc": "./hole.io/game/imgupscaler.jpg",
"name": "Hole.io"
},
{
"url": "/0/g/hole.io-scratch/",
"imageSrc": "./hole.io-scratch/game/scratch.png",
"name": "Hole.io (Scratch)"
},
{
"url": "/0/g/smashkarts/",
"imageSrc": "/0/g/smashkarts/game/images/icon-512.png",
"name": "Smash Karts"
},
{
"url": "./draw-the-hill/",
"imageSrc": "/0/g/draw-the-hill/game/icons/icon-512.png",
"name": "Draw the Hill"
},
{
"url": "/0/g/retrobowl/",
"imageSrc": "https://play-lh.googleusercontent.com/WRM5Y1xZmzcCP1YtO5zl6G2g7CU5c5ZfjX4UVrgi1bpNgkfy-wuB-bQx3kkeRfaGYQ",
"name": "Retro Bowl"
},
{
"url": "./fallguys/",
"imageSrc": "/0/g/fallguys/game/splash.png",
"name": "Fall Guys"
},
{
"url": "/game/?hello-guys",
"imageSrc": "/game/img/helloguys-thumb1.webp",
"name": "Hello Guys"
},
{
"name": "Stumble Guys",
"imageSrc": "/0/g/Stumble Guys/splash.png",
Expand Down Expand Up @@ -888,6 +909,11 @@
"imageSrc": "https://play-lh.googleusercontent.com/V3M-ZVyu4NCOR8oxeHEQSrt5LJhu44xlDtIx-d3YnrPCMEvV-lxPJDyWoJkxsS1Soxsx",
"url": "./tombmask/"
},
{
"name": "Temple of Boom",
"imageSrc": "/game/img/templeofboom.avif",
"url": "/game/?temple-of-boom"
},
{
"name": "Granny",
"imageSrc": "https://upload.wikimedia.org/wikipedia/en/8/88/Granny_game_icon.png",
Expand Down Expand Up @@ -1003,6 +1029,12 @@
"imageSrc": "https://play-lh.googleusercontent.com/AUGkRrKMtUCLVE9vCvlfMY9Ny9EBqzx17yejVtEEhvpkw-H6lJlvBHgCMqPJm8HV_tM",
"url": "/0/g/duck-life/"
},
{
"name": "Stick Defenders",
"imageSrc": "/game/img/stick-defenders.avif",
"url": "/game/?stick-defenders",
"tags": "adventure, action, shooting, point-and-click"
},
{
"name": "Henry Stickmin",
"imageSrc": "/0/g/hs/splash.bmp",
Expand Down
1 change: 0 additions & 1 deletion 0/g/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ <h3>Add a game!</h3>
<script src="/0/assets/js/tos.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@ruffle-rs/ruffle"></script>
<script src="https://unpkg.com/@ruffle-rs/ruffle"></script>
<script src="/js/sw.js"></script>
</body>

</html>
2 changes: 1 addition & 1 deletion en-us/sitelock/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
<div class="container2">
<div class="container">
<h2>Sitelock | nate-games</h2>
<p> <i>Sorry,</i> the website you were playing on isn't authorized,<br>if you are hosting it then please contact developer support.</p><br><br>
<p> <i>Sorry,</i> the website you were playing on isn't authorized,<br>if you are hosting it then please contact developer support.</p>
<a class="buttons" href="http://nate-games.xyz">Go to nate-games</a>
</div>
</div>
Expand Down
8 changes: 7 additions & 1 deletion game/game-title.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,11 @@
"repuls.io": "Repuls.io",
"fnaf-4": "FNAF 4",
"fnf-mid-fight-masses": "FNF Mid-Fight Masses Mod",
"vex-7": "Vex 7"
"vex-7": "Vex 7",
"masked-forces": "Masked Forces",
"stick-defenders": "Stick Defenders",
"swingo": "Swingo",
"temple-of-boom": "Temple of Boom",
"hello-guys": "Hello Guys",
"burnin-rubber-5-xs": "Burnin Rubber 5 XS"
}
Binary file added game/img/burnin-rubber-5-xs.avif
Binary file not shown.
Binary file added game/img/helloguys-thumb1.webp
Binary file not shown.
Binary file added game/img/helloguys-thumb2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added game/img/stick-defenders.avif
Binary file not shown.
Binary file added game/img/swingo.avif
Binary file not shown.
Binary file added game/img/templeofboom.avif
Binary file not shown.
1 change: 0 additions & 1 deletion game/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@
});
</script>
<script src="main.js"></script>
<script src="/js/sw.js"></script>
</body>

</html>
8 changes: 7 additions & 1 deletion game/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@ document.addEventListener("DOMContentLoaded", function () {
"repuls.io": "https://cdn-ngs.pages.dev/repuls/",
"fnaf-4": "https://cdn-ngs.pages.dev/fnaf-4/",
"fnf-mid-fight-masses": "https://cdn-ngs.pages.dev/fnfmidfight/",
"vex-7": "https://cdn.nate-games.xyz/vex-7/"
"vex-7": "https://cdn.nate-games.xyz/vex-7/",
"masked-forces": "https://topvazstore.github.io/g8/masked-forces/",
"stick-defenders": "https://topvazstore.github.io/g6/stick-defenders/",
"swingo": "https://topvazstore.github.io/g3/swingo/",
"temple-of-boom": "https://topvazstore.github.io/g3/temple-of-boom/",
"hello-guys": "https://images-opensocial.googleusercontent.com/gadgets/ifr?url=https://362963852-037591742967942863.preview.editmysite.com/uploads/b/139890129-842828255751613847/files/hegu.xml",
"burnin-rubber-5-xs": "https://webglmath.github.io/burnin-rubber-5-xs/"
};

const filePath = pageMappings[queryString];
Expand Down
4 changes: 3 additions & 1 deletion js/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@ function isDomainAllowed() {
var referringDomain = getReferringDomain();
if (!referringDomain) return false;

var currentURL = window.location.href;
for (var i = 0; i < allowedDomains.length; i++) {
if (referringDomain === allowedDomains[i]) {
if (currentURL.indexOf(allowedDomains[i]) !== -1) {
return true;
}
}

return false;
}

if (!isDomainAllowed()) {
// alert('Access to this site is not allowed from the current domain.');
window.location.href = 'https://nate-games.xyz/en-us/sitelock';
Expand Down

0 comments on commit 512371b

Please sign in to comment.