brachypelmide
3 weeks ago
this is my first time seeing a script on how to access the api. i assume fetching sitedata from the api using a simple fetch() function in a script on your website is blocked by neocities? cause it be a hell of a lot easier to just do that
predawka
3 weeks ago
@brachypelmide yes, since 2024 neocities blocks any fetch calls for new free accounts. @dann's tutorial mentions this, @dabric has made an article detailing how the neocities csp works: https://content-security-policy.neocities.org/
v0idspace
3 weeks ago
How can i use this in order to make my "last updated xx.xx.xx" widget work again? Because afaik it uses the same method here.
predawka
3 weeks ago
@v0idspace it's the same data fields you're formatting, only the proxy through which you get that data changes, so the last updated field will still work - i have it too
brachypelmide
3 weeks ago
@predawka ah damn that sucks. i assume that was probably done to reduce load @v0idspace i THINK you should just be able to fetch the worker URL and get a working infoset from that (psuedocode, i suck at async: https://pastebin.com/raw/vHsrwMGi)
v0idspace
3 weeks ago
Thank you! I dont know if im gonna go trough with this because i dont wanna make another account for something, but i will keep it in mind!
dann
3 weeks ago
Thanks for this. I need to brush up on Cloudflare, workers, and all the things I've missed by living in the past. At a glance, it appears to be doing the same thing that the weirdscifi proxy was doing--mainly handling the API call on the server side where Cross Origin isn't an issue, and then making it public again without the restriction.
dann
3 weeks ago
It would be cool is the site name could be passed as a variable, but I'm not sure if that's possible. I'd just host it myself on my PHP server, but godaddy has me in this grandfathered plan where I get unlimited domains and space, but none of the modern stuff like SSL, which neocities won't touch unless implemented.
dann
3 weeks ago
I might see if I can still use cloudflare on one of my sites to get HTTPS active, then I won't be relying on others.
jefbecker
3 weeks ago
That's nice. I'll give it a try since I already have a Cloudflare account. Thanks for the tip!
jefbecker
3 weeks ago
My god, this is so damn easy I can't believe it. It's just a couple of clicks, paste and deploy. Thank you so much, guys!
tabf5
3 weeks ago
I'm gonna have to start manually updating my current viewcount on /stuff every day now lmao. Also new user tabling!! And some buttons on the button wall
tabf5
3 weeks ago
Fuck it, I'm also renaming "Main Works" to "Main Stories." Time to update every single page
bevweb
3 weeks ago
nothing like the grind of making a change to your naming scheme and editing a dozen affected pages. though for your purposes would it be simpler to make the navbar an iframe? assuming thats what has to be edited on every page
tabf5
3 weeks ago
I guess, I might do that if I have to update the navbar again. For now I think I'm good for a while
littlest-book-shops
3 weeks ago
I love the pic for the latest update! I assumed it was a photo like the others but the tablings are so uniform?? Really stunning.
littlest-book-shops
3 weeks ago
Oh my God I just saw the 3D prints note. -facepalm- Gorgeous stuff tho!
diremptiness
3 weeks ago
There are truly some songs that just WORK while driving as opposed to anywhere else. I'm not that big a fan of Smashing Pumpkins, but 1979 starts playing when you're feeling introspective on the highway and the sun is setting... it just hits.
sonic2k
3 weeks ago
The free sticker is like a QSL card in ham radio. That is most impressive. Well done to you! This is why I love Neocities... my kind of people.
I'm almost tempted to put in a Wiimote itself since I still play the Wii sometimes, I just emulate one on my computer and connect a Wiimote to it
Added this to the museum now!