Fanfiction.net story export script.

Writes all chapters of the story on one page.

< Opiniones de Fanfiction.net story export script.

Pregunta o comentario

§
Publicado: 11/12/2015

fix for partly broken script

After a little debugging, it seems GM_xmlhttpRequest() in loadChapter() does no longer work as expected.
The GM_xmlhttpRequest() can be substituted with ordinary javascript XMLHttpRequest()
and the script works again (I am using the script with Firefox 42.0) :

function loadChapter(num,callback){
var replStr='\/'+String(num)+'\/';
var hr=location.href;
var currentURL=hr.replace(/\/\d{1,3}\//,replStr);
var htpreq = new XMLHttpRequest();
htpreq.onreadystatechange = function() {
if (htpreq.readyState == XMLHttpRequest.DONE ) {
callback(htpreq,num-1);
}
}
htpreq.open('GET',currentURL, true);
htpreq.send(null);
}

Publicar respuesta

Inicia sesión para responder.

长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元