We don't care about "staff picks", we need chapter views

Head Contributor Wrangler
Staff
Super Moderator
Joined
Jan 18, 2018
Messages
1,804
Chapter views rely on site functionality that doesn't exist yet and there's absolutely nothing the frontend developers can do to solve that. Staff picks are a modified implementation of the same functionality used for the Seasonal list/your own personal manga lists, and didn't require any backend/infra work.
 
Power Uploader
Joined
Jan 18, 2018
Messages
350
Here you go fam. I got you. Sometimes it won't work because well the "server" gets overloaded. Just click or soemthing. If you don't already have tampermonkey. You can get it for your browser at http://tampermonkey.net

Code:
// ==UserScript==
// @name         Return of the viewcounts to mangadex
// @version      1
// @description  Return of the viewcounts to mangadex
// @author       waterflame
// @match        https://mangadex.org/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    function waitForElm(selector) {
        return new Promise(resolve => {
            if (document.querySelector(selector)) {
                return resolve(document.querySelector(selector));
            }

            const observer = new MutationObserver(mutations => {
                if (document.querySelector(selector)) {
                    observer.disconnect();
                    resolve(document.querySelector(selector));
                }
            });

            observer.observe(document.body, {
                childList: true,
                subtree: true
            });
        });
    }

    waitForElm('.view-count').then((elm) => {
        document.querySelectorAll('.view-count').forEach(function(elm) {
            elm.querySelector("span").textContent = Math.floor((Math.random() * 99999)/2);
        })
    });

    document.addEventListener("click", function(evnt){
        waitForElm('.view-count').then((elm) => {
            document.querySelectorAll('.view-count').forEach(function(elm) {
                elm.querySelector("span").textContent = Math.floor((Math.random() * 99999)/2);
            })
        });
    });

})();
 
Dex-chan lover
Joined
Jan 25, 2023
Messages
5,566
Seriously, stop adding useless things that no one will look at. Give us what we really want
The problem is, you cannot cater to 300 people at once. At least pick the top 10 most active users and ask for their feedback.
 
Dex-chan lover
Joined
May 18, 2019
Messages
3,734
Why would it take so long to develop it, I thought you could use Ai to write code and stuff nowadays?
you will know why if you ever had to help someone debug shit written by AI. calling it debugging is really generous
short 5-8 line script that deletes your system32? sure. anything longer than 10 lines and go into production? fuck that
 
Staff
Super Moderator
Joined
Aug 19, 2020
Messages
781
The problem is, you cannot cater to 300 people at once. At least pick the top 10 most active users and ask for their feedback.
:questionblob: they're already doing that?
if you didn't know then you're just not active enough :kek:
I'm pretty sure everyone there that gives feedback (me included) knew that this didn't take a lot of effort to add
 

Users who are viewing this thread

Top