你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/8157-tumblr-notes-autoload/discussions/14669,源站連結 點此以跳轉。
Adds a button to autoload all notes on Tumblr full page posts
< 脚本 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)