Hummingbird User Compare

Adds a button that compares the anime list of a hummingbird user against yours

< Σχολιασμός για τον κώδικα Hummingbird User Compare

Ερώτηση/σχόλιο

§
Δημοσιεύτηκε: 30/04/2015

Trying to figure out how to change position of the compatibility output

I've been trying to figure out how to move
Anime Compatibility: *output here* into say the favorite anime secion.

kufiiΔημιουργός
§
Δημοσιεύτηκε: 10/05/2015

You'd have to change the code for that. If you look at line 216 you'll see btnFollow.parentNode.innerHTML += hb.makeCompatTable([anime, manga], styleOverride); which means I'm appending it to the hummingbird follow button.

so something like

var favoriteDiv = Util.q('div.favorite-div');
favoriteDiv.innerHTML += hb.makeCompatTable([anime, manga], styleOverride);

would probably do it, but there might be some bugs. Particularly on the forums page. It would be a start at least.

Δημοσίευση απάντησης

Συνδεθείτε για να δημοσιεύσετε μια απάντηση.