Dannarchy

dannarchy.com

8,855,571 views
1,548 followers
14,118 updates
0 tips
Yo Dan! @predawka emailed me a fix for the viewcount tutorial, I can't find your email to forward it to you though. I'm just gonna dump it here if that's chill with you: https://pastebin.com/raw/dw7s2Th3 (Bonus tip: when I got to the screen where I create an application or "worker," I had to pick the Hello World template and then find the button to edit the code to find a place to paste this script in)
14 likes
4 likes
oaaky's avatar oaaky 1 day ago

thanks for sharing this!

2 likes
brachypelmide's avatar brachypelmide 1 day 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

1 like
predawka's avatar predawka 1 day 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/

2 likes
v0idspace's avatar v0idspace 1 day 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.

1 like
predawka's avatar predawka 1 day 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

3 likes
brachypelmide's avatar brachypelmide 1 day 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)

1 like
v0idspace's avatar v0idspace 18 hours 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!

1 like
dann's avatar dann 17 hours 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.

1 like
dann's avatar dann 17 hours 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.

1 like
dann's avatar dann 17 hours 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.

1 like
dann updated their site.
1 day ago
18 likes
othala's avatar othala 1 day ago

Server offline ftw

dann updated their site.
4 days ago
11 likes
Uh oh, it looks like the person hosting the PHP for the Native Neocities Hit-Counter (https://dannarchy.com/tut/tut_002) recently took down their website, so now weirdscifi.ratiosemper.com leads to nothing. Is there an alternative? The info on the Neocities API on your tutorial also seems outdated, I get a "Forbidden" error whenever I enter my site name
10 likes
archieiscool's avatar archieiscool 4 days ago

I just tried it with my account and it said forbidden as well ._.

infi-power's avatar infi-power 4 days ago

i also realized this issue a day ago, and yeah i also get "forbidden" error

infi-power's avatar infi-power 4 days ago

weirdly enough the redirection from the tutorial seems broken, if i type "https://neocities.org/api/info?sitename=infi-power" in my address bar, it works fine???

tabf5's avatar tabf5 4 days ago

yeah the Neocities API lets you type the URL in directly but not get referred to it by another site, so I can't use it on mine. Ratiosemper's PHP let you get around this but now it's gone

1 like
dann's avatar dann 4 days ago

I'll check on the proxy site, but yeah, if you have a free account, it won't work anyway, since external calls after the initial load are not allowed.

3 likes
v0idspace's avatar v0idspace 4 days ago

ooooh so it wasnt just me! My "last updated..." script i got from that stopped working as well. Was hoping to find an alternative but so far no luck.

1 like
Holy hell your page is rad!
1 like
dann's avatar dann 1 week ago

Thanks for the comment! Much appreciated

1 like
dann updated their site.
3 weeks ago
13 likes
Top echelon of sites.
1 like
dann's avatar dann 3 weeks ago

Appreciate it!

1 like
finally, a site that isnt a digital artist, with bunch of stupid things, this, my friend, is peak
2 likes
dann's avatar dann 1 month ago

I specialize in curating stupid things. Thanks for visiting

1 like
Thank you for keeping coolpix alive
1 like
dargonics's avatar dargonics 1 month ago

i have a folder full of random photos i saved maybe i should make my own coolpix

2 likes
jammakesjunk's avatar jammakesjunk 1 month ago

Sorry for my reply being super late, my account is new. I had a little file just called "photos" on my laptop, so when I saw Coolpix on your page I just went, huh, this seems like the right term. The page now has a link to yours, so you are credited properly!!

1 like
dann updated their site.
1 month ago
9 likes

Website Stats

Last updated 1 day ago
CreatedMar 25, 2019
Site Traffic Stats

Tags

videogames design programming nostalgia personal