Skip to content

Instantly share code, notes, and snippets.

@r03ert0
Last active January 8, 2019 09:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r03ert0/71eed45621d54d3727ce0d802cfb449e to your computer and use it in GitHub Desktop.
Save r03ert0/71eed45621d54d3727ce0d802cfb449e to your computer and use it in GitHub Desktop.
/*
NPRC is a consortium of neuroscience journals that allows reviews done in one of them
to be shared with another, making the review process faster.
There is a webpage listing all participating journals, about 60. However, the website
will only show about 20 at a time, because of what I see as poor design. The following
code will get the list of journals and print them to the console as simple text.
*/
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script>
let i, url;
$('body').html("");
for(i=1;i<4;i++) {
url = `http://nprc.incf.org/index.php/participating-journals/page/${i}/`;
$.get(url,(o)=>{
$(o).find(".entry-title a").map((a,b)=>{
$('body').append(`<a href="${$(b).attr('href')}">${$(b).text()}</a><br/>`);
});
})
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment