About


Hi there, what's up?


Welcome to my extraordinarily mediocrecrap site. Except for the random image on the Home page, there's really not anything else here. And not even the random image is my own doing, really. It's fetched by calling the API of Danbooru or optionally Gelbooru, so yeah...


The site has been updated since I first wrote this, but it still pretty much the same way. One of the only changes has been that the site is now scriptified, more fancy if you will. Instead of using PHP to make and process the API request, the request is now done client side via JavaScript. The effect of this change is that your browser has to support some modern features, I've included some polyfills for this, but I'm not sure how well they work. So yeah, more data to download initially, but this should lower the total amount of data you need to download.


If you really want to see how this monstrosity works, then feel free to check the source. But remember, it's really a monstrosity, I'm not competent, at all, writing sites, or code in general, so yeah...


To contact me... Well, this domain has a working MX record set up, so you should be able to figure it out.


Sample

Danbooru:

GET https://danbooru.donmai.us/posts.json?tags=megumin+rating:safe&limit=1&random=true


Gelbooru:

// Gelbooru doesn't have a convenient random parameter, as far as I know, but it does work to do a two-round query.

// 1) Do a GET and parse the 'count' attribute, and then random(1, count)-1.
GET https://gelbooru.com/index.php?page=dapi&s=post&q=index&tags=megumin+rating:safe&limit=0

// 2) Do a GET with the 'pid' argument set to the resulting random value.
GET https://gelbooru.com/index.php?page=dapi&s=post&q=index&tags=megumin+rating:safe&limit=1&pid=RAND