This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Mark all Audible library books ON THE CURRENT PAGE as finished or unfinished | |
| // The script is basically a macro: it works by emulating a button click and just automating it for every single book | |
| function markAs(config) { | |
| config = config || {}; | |
| var i = 0; | |
| var elements = $(config.finished ? ".mark-as-finished-button" : ".mark-as-unfinished-button"); | |
| var l = elements.length; | |
| (function fn() { | |
| const item = elements[i++]; | |
| $(item).find("button").click(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| NOTE: | |
| 1. Makes the assumption that only one layer is selected (only really matters when going down) | |
| 2. Doesn't care if the adjacent layer is a group or not | |
| */ | |
| var options = { | |
| direction: 'up', | |
| loop: true, | |
| }; |
OlderNewer