// ==UserScript== // @name fictionpress // @namespace fictionpress // @description remove all the style and merge with the list from the TOC page // @include https://www.fictionpress.com/s/*/*/* // @include http://skythewood.blogspot.sg/p/knights-and-magic-author-amazake-no.html // @include http://www.translationnations.com/translations/*/ // @include http://gravitytales.com/chaotic-sword-god/ // @include http://raisingthedead.ninja/current-* // @include http://www.wuxiaworld.com/*-index/ // @include http://japtem.com/*-volume-*chapter-*/ // @include http*://dragomircm.com/wn*/ // @include http://royalroadl.com/fiction/* // @include https://xantandminions.wordpress.com/lv999-villager/ // @include http://www.sousetsuka.com/p/blog-page* // @include http://shiroyukitranslations.com/long-live-summons/ // @include https://clickyclicktranslation.blogspot.com/p/blog-page.html // @include http://gravitytales.com/*/true-martial-world // @include http://thesylthorian.com/wn-*/ // @include http://www.rainbowturtletranslation.com/legendary-moonlight-sculptor-table-of-contents/ // @version 0.8.8.7 // @require http://code.jquery.com/jquery-latest.js // @grant GM_xmlhttpRequest // @grant GM_getValue // @grant GM_setValue // @connect-src * // @downloadURL https://update.greasyfork.icu/scripts/26900/fictionpress.user.js // @updateURL https://update.greasyfork.icu/scripts/26900/fictionpress.meta.js // ==/UserScript== oldHistory = JSON.parse(GM_getValue("history","{}")); button = $("
"); button[0].firstChild.addEventListener('click',getText,true); button[0].children[2].addEventListener('click',trasposta,true);$("body").append(button); istart = 0; if(location.href.indexOf("http://turb0translation.blogspot.dk/") != -1) { istart = 317; } if (oldHistory[location.href.replace("https://","http://")]) istart = oldHistory[location.href.replace("https://","http://")]; //delete oldHistory[location.href.replace("https://","http://")]; // delete history number //GM_setValue("history",JSON.stringify(oldHistory)); // ^^^^^^^^^^^^^^^^^^^^^ $("#startChap").val(istart); class1=""; class2=""; class3=""; class4=""; orderfunction=null; if (location.href.indexOf("translationnations.com") != -1){ class1=".entry-content a"; class2=".entry-content"; } else if(location.href.indexOf("gravitytales.com/") != -1) { class1="article a"; class2="article"; class3=".sharedaddy"; } else if(location.href.indexOf("http://raisingthedead.ninja/") != -1) { class1=".entry-content a"; class2=".post.hentry"; class3=".comments,.post-footer,.entry-meta,.wp-post-navigation,.wpcnt,.entry-content p:last-child"; } //class4="p:has(strong)"; else if(location.href.indexOf("http://www.wuxiaworld.com/") != -1) { class1=".entry-content a"; class2=".entry-header,.entry-content"; class3=".comments,.post-footer"; } else if(location.href.indexOf("dragomircm.com/wn") != -1) { class1="article a"; class2="article"; class3="#jp-post-flair,.wpcnt,.entry-utility"; } else if(location.href.indexOf("http://royalroadl.com/fiction") != -1) { class1=".chapters ul a"; class2=".post_body:first,.largetext:first"; class3=".post-content"; } else if(location.href.indexOf("xantandminions.wordpress.com/lv999-villager/") != -1) { class1=".entry-content a"; class2=".entry-header,.entry-content"; class3="#jp-post-flair"; } else if(location.href.indexOf("www.sousetsuka.com/p/blog-pa") != -1) { class1=".entry-content a"; class2="div.post.hentry"; class3="#jp-post-flair"; } else if(location.href.indexOf("shiroyukitranslations.com/long-live-summons/") != -1) { class1="#lcp_instance_1 a"; class2="article"; class3=".sharedaddy"; } else if(location.href.indexOf("thesylthorian.com") != -1) { class1=".panel-grid a"; class2="article .panel-grid:first"; class3=".fcbk_share"; } else if(location.href.indexOf("clickyclicktranslation.blogspot.com") != -1) { class1=".entry-content a"; class2=".post.hentry"; class3=".fcbk_share"; } else if(location.href.indexOf("rainbowturtletranslation.com") != -1) { class1=".entry-content a"; class2="article"; class3=".sharedaddy,.wpcnt"; } urls = []; $(class1).each(function(){ if (this.href.length > 4 && !/(.*\.jpg$)|(.*\.jpeg$)|(.*\.gif$)|(.*\.bmp$)|(.*imgur\.com.*)|(.*tumblr\.com.*)|(.*\?share.*)|(.*\/#[^\/]*)/.test(this.href)) urls.push(this.href); if (urls.length -1 == istart) $(this).wrap(""); }); if(location.href.indexOf("shiroyukitranslations.com/long-live-summons/") != -1) urls = urls.reverse(); function trasposta(css){ $(".entry-content table").each(function() { var $this = $(this); var newrows = []; $this.find("tr").each(function(){ var i = 0; $(this).find("td").each(function(){ i++; if(newrows[i] === undefined) { newrows[i] = $("