Tumblr notes autoload

Adds a button to autoload all notes on Tumblr full page posts

< Feedback on Tumblr notes autoload

Değerlendirme: İyi - script çalışıyor

§
Gönderildi: 17.03.2015

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)

woxxomSahip
§
Gönderildi: 17.03.2015

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 :-)

§
Gönderildi: 17.03.2015

Sounds good. I'll look into adding them. Thanks for hacking it up; it's nice to have something to start from.

§
Gönderildi: 22.03.2015

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)
}
woxxomSahip
§
Gönderildi: 23.03.2015

Thanks.

The script is updated.

Cevap paylaş

Yanıt göndermek için oturum açın.