Last active
January 8, 2019 09:07
-
-
Save r03ert0/71eed45621d54d3727ce0d802cfb449e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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