Created
June 8, 2016 04:44
-
-
Save gylns/6c0827960dc3bf41fbd66400ad0b81f8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var lt = document.getElementsByClassName("floatLeft"); | |
for (var it of lt) | |
{ | |
var link = it.lastElementChild.href; | |
var bkn = /bkn=([^&]*)&/.exec(link)[1]; | |
var fn = /=([^.]*)\.pdf/.exec(link)[1]; | |
it.lastElementChild.href= "/ebooks/"+bkn+"/"+fn+".pdf?bkn="+bkn+"&pdfType=chapter"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment