How to toggle multiple bell on/off?

Status
Not open for further replies.
Joined
May 30, 2020
Messages
14
Help please. I need to bell many manga in library but to do it one by one is tiring.
 
Solution
How to do bell all manga in library?

Run this code in in the browser devtools console of a mangadex.org tab where you're logged in

JavaScript:
/* 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'...
MD@Home
Joined
Oct 15, 2020
Messages
2,220
It would be tricky if you only want to bell or unbell some manga in your library cz you need to insert each manga id you want into coded API.

It's more doable if u mass bell or mass unbell your manga in library
 
Joined
May 30, 2020
Messages
14
It would be tricky if you only want to bell or unbell some manga in your library cz you need to insert each manga id you want into coded API.

It's more doable if u mass bell or mass unbell your manga in library
How to do bell all manga in library?
 
MD@Home
Joined
Oct 15, 2020
Messages
2,220
How to do bell all manga in library?

Run this code in in the browser devtools console of a mangadex.org tab where you're logged in

JavaScript:
/* 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"
            }
        }
    ))
}
 
Last edited:
Solution
Member
Joined
Feb 8, 2019
Messages
11
Run this code in in the browser devtools console of a mangadex.org tab where you're logged in

JavaScript:
/* 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"
            }
        }
    ))
}
I hate to necro-post, but could you possibly explain how to do this? I’d like to turn notifications on for my entire library, but I’m basically lost when it comes to coding. I’d really appreciate any help.
 
MD@Home
Joined
Oct 15, 2020
Messages
2,220
I hate to necro-post, but could you possibly explain how to do this? I’d like to turn notifications on for my entire library, but I’m basically lost when it comes to coding. I’d really appreciate any help.
You can use the same code, change line method: 'POST' into method: 'DELETE'
 
Status
Not open for further replies.

Users who are viewing this thread

Top