Skip to content

Instantly share code, notes, and snippets.

@meldsza
Last active July 30, 2017 12:31
Show Gist options
  • Save meldsza/acb22feefc1b45880f3acd678178477b to your computer and use it in GitHub Desktop.
Save meldsza/acb22feefc1b45880f3acd678178477b to your computer and use it in GitHub Desktop.
A script to load to the end of a page in discourse - Helps to select all posts in a topic by loading them and then using bulk action
let load = function(){
if($('a:contains("Why not create a topic?")').length > 0)
return console.log("LoadAll: Loading Complete")
setTimeout(function(){
$("html, body").animate({ scrollTop: $(document).height() }, 1);
load()
},10)
}
load()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment