AO3 Review + Last Chapter Shortcut + Kudos-sortable Bookmarks

Adds shortcuts for last chapter and a floaty review box, and bookmark sorting by kudos and filtering by complete only. This script is maintained by Fangirlishness with permission from saxamaphone.

< Opinie na AO3 Review + Last Chapter Shortcut + Kudos-sortable Bookmarks

Ocena: Dobry - skrypt działa

Been using the floaty review for a few years, now - it's invaluable, thanks. BTW, index pages now include links to the last chapter (Chapters: 3/? > '3' is a link) so you can avoid the ajax call, i.e. this

jQuery.get('/works/' + iStoryId + '/navigate', function(oData) {
    var sLastChapterPath = jQuery(oData).find('ol li').last().find('a').attr('href');
    jQuery(oHeader).append('<a href="' + sLastChapterPath +'" title="Jump to last chapter"> »</a>');
});

...can be replaced with...

 for (const oBlurb of $$('li.blurb.group')) { // iterate through all blurbs on an index page
     const sLastChapterPath = oBlurb.querySelector('dd.chapters a').href // get the last chapter url from the blurb
     // etc
 }

(vanilla javascript because I've forgotten how to jQuery haha)

Odpowiedz

Zaloguj się, by odpowiedzieć.