4chan / 4chan-API

Documentation for 4chan's read-only JSON API.
http://www.4chan.org/
1.02k stars 73 forks source link

The new "board flags" feature doesn't provide individual flag URLs #90

Closed catamphetamine closed 3 years ago

catamphetamine commented 3 years ago

The new "board flags" feature has been introduced recently: https://github.com/4chan/4chan-API/commit/d095a7af76d0a5a48e3008fb9a05e5b3bbb6c2bb

It discards the old "troll" flag parameters and URLs and introduces a new way of showing flags using a combination of a "sprite" image and a *.css file. Even if you've measured that it reduces the traffic (I don't think it does, generally and in 2021), that change makes it extremely cumbersome to show those icons, both in a web client and in a mobile client (which doesn't use CSS).

Consider introducing normal regular flag URLs. Also consider redrawing them as SVGs because it's 2021 and you could organize a contest or something.

desuwa commented 3 years ago

The files are in the same folder as the sprite sheet. The doc was missing. https://github.com/4chan/4chan-API/commit/36a4e535c79cab2c89ff3e036b8971322cc8782f