Adds a button to autoload all notes on Tumblr full page posts
< Feedback on Tumblr notes autoload
Good suggestions, but these should be options, I guess, with at least a simple setup UI. The thing is, I don't use tumblr, so if you want to enhance the script feel free to do so, either by forking whatever few lines the script has or make a new one :-)
Sounds good. I'll look into adding them. Thanks for hacking it up; it's nice to have something to start from.
The change to make it not run every time is quite short. I'll put it here, so you can update the script (or other people can get it). When I add the filtering, I'll make my own fork, but this seems small enough to just post as a patch.
Replace the first line of the script with the following:
window.addEventListener('DOMContentLoaded', addInterface);
function addInterface() {
document.querySelector('.notes').insertAdjacentHTML('beforebegin', '<button id="loadallBtn">Load all notes</button>')
document.getElementById("loadallBtn").addEventListener('click', clickMore)
}
Thanks.
The script is updated.
Very simple, but nice
Features I'd like to see added (and may add myself eventually):
- Require a button click to start the loading (avoids problems on posts with hundreds of thousands of notes)
- Filter out particular types of notes (particularly Likes)