Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Kimmax109866yLooks like some one page 'application'
If delivering pages via json is a good idea could be heavily debated, I for one hate it. -
I once skinned my schools crappy website. Turned out that every minute they fetched the whole fucking navbar to display the message count... Had to frikkin' hack jQuery itself...
-
For those wondering, this is from a site called "9Anime".
This section is their list of servers and episodes one can select after picking in anime to watch.
They then just slap the content of the JSON (the value of the `html` key) into the site itself. ( something like `$("#whatever").html(<the json html>);`)
but instead of just adding some data like in regular JSON and looping over that (or using god damn PHP with cURL or something for it, they decided to just slap the entire HTML of it in the json (they do this with pretty much any section though).
also @ok2094: they do, but it's not intended for the public really (I just use it to scrape and download episodes using a little tool I've made in C#, which I'll release on my GitLab soon after finishing some stuff) -
@ewpratten thanks for this forfilling comment at first i thought that was the code of someone trying to use the androidsdk from the view of an android developer
-
donuts236686y@FinlayDaG33k it makes it harder for you to remove the pop-up ads I guess and also harder to scrape the download link using a tool like JDownloader?
-
@billgates not rly, the pop-ups are loaded in differently and scraping the download link won't have an effect because there is no download button anywhere
-
Kimmax109866y@billgates both a no, ad blocks work dynamically on dom changes too and I think JDownloader has a js handler too, so it should work on the fully loaded thing
Related Rants
What in the name of fuck is this API?
rant
json
html
api
html in json