brachypelmide
5 months 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
5 months 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
5 months 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
5 months 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
5 months 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
5 months 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
5 months 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
5 months 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
5 months 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
5 months ago
That's nice. I'll give it a try since I already have a Cloudflare account. Thanks for the tip!
jefbecker
5 months 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
1 month ago
UPDATE: This one is even better actually https://resrc.neocities.org/posts/show-your-last-updated-date
tabf5
5 months 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
5 months ago
Fuck it, I'm also renaming "Main Works" to "Main Stories." Time to update every single page
bevweb
5 months 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
5 months 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
5 months 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
5 months ago
Oh my God I just saw the 3D prints note. -facepalm- Gorgeous stuff tho!
diremptiness
5 months 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
5 months 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.
cablehare
5 months ago
Thank you so much! :D BTW I checked out ur site too and I really like the woodwork collection
tabf5
5 months ago
YES it came in so many different colors! Such a fun toy, I think my favorite version is this one shaped like an all-seeing orb https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSGYlOA0Sh1WlKKG6TPjoh1KyL7INTHadLKcdcaUmF1-VHzx4YMUh2TYmE&s=10
I would if I grew up on it! I was a Wii guy though
@tabf5 SAME! The Wii was definitely their best console