You are going to block this site. This will do the following:
- You will no longer see this site in searches.
- Site will no longer see your site in searches.
- Site will not be able to comment on your site profile.
- Any comments this site has posted to your profile will not be displayed.
Are you sure you want to do this?
Amazing stuff, I was writingsomething like this but using client side XHR, but I think this is a bad idea because that means you're stressing the neocities API a lot.(At least if you do it on page load, instead of just a "query stats" button for demonstration purposes)
I don't know, there could be some way to lower the load on Neocities. I suppose it would be possible to "cache" information for a maybe 12-hour or 1 day maximum, or maybe a little more so if someone puts multiple hit counters on every page, it wouldn't keep accessing Neocities servers as they go from page to page. I was using the API before but right now I'm only using it for Last Updated dates since it doesn't say
"n hours ago" or "n years ago". Right now I'm scraping the site profile page with may not be the best way to do things, but if you could get all of the information from the API that's solely what I'd use.
@joppiesaus could this happen with the Fetch API?
I’m just asking because imo I think fetch is better than XHR
Yes, you could (probably) do this using the Fetch API. I meant that doing such a request on a home page on page load would be a bad idea since it would probably overstress the neocities API. But for just diagnostic/test/demonstration page with a input field and a button and a warning would probably be OK.