Sadpanda Save/Export All Favorites

Load all favorites to the page and save it, export as JSON data or just copy the textbox contents. Works on exhentai and e-hentai.

< Σχολιασμός για τον κώδικα Sadpanda Save/Export All Favorites

Αναφορά: Καλός - ο κώδικας λειτουργεί

§
Δημοσιεύτηκε: 27/07/2019
Επεξεργάστηκε: 27/07/2019

Notes

Could you make a plugin that takes the title and the notes of all my favorites? And thank you so much for this.

§
Δημοσιεύτηκε: 27/07/2019
Επεξεργάστηκε: 27/07/2019

.

SaddestPandaΔημιουργός
§
Δημοσιεύτηκε: 27/07/2019
Επεξεργάστηκε: 02/08/2019
  1. Get all your favorites to load into the page. (or open up your full favorites backup and read the edit below)
  2. Paste this script into your browser's console (google how to open that)

    var favswithNotes = document.querySelectorAll('.glfnote:not([style*="display:none"])');
    var combineNotes = "";
    for (var i=0;i<favswithNotes.length;i++){
        combineNotes += "Note " + (i+1) + " --- " + favswithNotes[i].parentNode.firstChild.innerText + " --- Note Content: " + favswithNotes[i].innerText.split("Note: ")[1] + "\n";
    }
    console.log("\n" + combineNotes);
    

Let me know if you need the URLs as well.

Edit: The first line might change depending on your backup solution. For Save Page WE using the line below works for me.

var favswithNotes = document.querySelectorAll('.glfnote[style=""]');

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

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