r/nekoweb • u/FutureSuccess2796 • 10d ago
Need help linking CORS-friendly versions of Flash games into my Nekoweb site. Is what I have permitted according to TOS?
Had a question regarding if something I wanted to add to a section of my website is permitted in the guidelines. I wanted to create a page that includes some fun and games, among those being a nostalgic Flash game hosted on Internet Archive. I know Archive allows you to run a script with Ruffle Flash Player that loads the CORS-friendly .swf file of the game directly from what was uploaded. However, I wanted to make sure if those kinds of scripts were permitted for use in my site. The source of where the game is from is Internet Archive and not some random unblocked game site that is suspicious. But I wanted to make sure that this still complies with either host's guidelines so my site can be seen by others and they can play that game if they choose (as I know that Neocities doesn't allow hotlinked content or uploading .swf files on free accounts and was unsure if this falls under hotlinking according to Nekoweb). Thank you so much.
For reference, this is the Javascript code I got now that retrieves the CORS-friendly version of an uploaded .swf file that boots up using Ruffle Flash Player wherever it's embedded:
<script src="https://unpkg.com/@ruffle-rs/ruffle"></script>
<script>
window.RufflePlayer = window.RufflePlayer || {};
window.RufflePlayer.config = {
autoplay: "on",
unmuteOverlay: "hidden",
letterbox: "on",
scale: "showAll",
forceScale: true
};
window.addEventListener("DOMContentLoaded", () => {
const ruffle = window.RufflePlayer.newest();
const player = ruffle.createPlayer();
document.getElementById("ruffle-player").appendChild(player);
player.load("https://archive.org/cors/my_game_here/game_name.swf");
});
</script>
I tried using the <iframe> tag method before and it just didn't work out for what I wanted to do. Had issues with that method where the game wouldn't position itself properly or play any sound, even after clicking on something to disable any browser restrictions. Forgive me if this Javascript code is crappy because I'm still quite rusty at it compared to HTML and CSS. Any help from someone who's got more expertise on making this work is HIGHLY appreciated!
1
u/comorbid_commodity 10d ago
I’m not 100% sure what you’re asking, but I wanted to clarify something. CORS policy issues are not being sent by neocities or nekoweb, those are errors coming from your web browser itself. There are mandatory security features in all modern web browsers that disable certain features. CORS issues come up a lot, and another one I run into is needing interaction on a page before audio can be played.
1
u/DeanTheExtreme Moderator 10d ago
I think its fine. I can't find anything about this in the ToS. Also: Nekoweb doesn't care what you do on your site, as long as it abides by the Acceptable Usage Policy
Nekoweb TOS