/* Bell All Manga From Library */
var bearer = "oidc.user:https://auth.mangadex.org/realms/mangadex:mangadex-frontend-stable"
var list =
(await (await fetch(
"https://api.mangadex.org/manga/status", {
headers: {
Authorization: "Bearer " + JSON.parse(localStorage.getItem(bearer)).access_token
}
}
)).json())
var manga = Object.entries(list.statuses).map(v => v[0]);
var count = manga.length
while (--count) {
(await fetch(
"https://api.mangadex.org/manga/" + manga[count] + "/follow", {
method: 'POST',
headers: {
Authorization: "Bearer " + JSON.parse(localStorage.getItem(bearer)).access_token,
"Content-Type": "application/json"
}
}
))
}