Alex_Qwerty
Silver Member | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору По дефолту так и есть. Проблема в определении этой следующей страницы (phpBB в link rel=next вообще в другую тему отправляет). Глянь fastforward.ini Код: // ==UserScript== // @name fix FastForward // @version 8 // @include * // ==/UserScript== document.addEventListener('DOMContentLoaded',function(){ var n; n = n ? n[0] : document.selectSingleNode( '//div[@id="bodyarea"]/div[@class="middletext"]/b[not(normalize-space(text())="...")]/following-sibling::a[@class="navPages"]' // SMF search +' | //td/b[not(normalize-space(text())="...") and not(normalize-space(text())="Pages:")]/following-sibling::a[@class="navPages"]' // SMF topics, boards +' | //tr[@class="catbg3"]/td/b[not(normalize-space(text())="...")]/following-sibling::a[@class="navPages"]' // SMF profile posts search +' | //span[@class="pagecurrent"]/following-sibling::span[@class="pagelink"]/a' // IPB +' | //a[contains(@href,"javascript:multi_page_jump")]/following-sibling::b/following-sibling::a' // ipb +' | //a[@rel="next"]' // VB +' | html/body/table[@class="page"]/tbody/tr/td/div[@class="content smallfont"]/div[@class="left"]/b/font/following-sibling::a' // vb? http://bbs.nashalife.ru/showthread.php?&threadid=11441&perpage=15&pagenumber=2 +' | //div[@class="selector"]/span[@class="cur"]/following-sibling::span/a' // ithappens +' | html/body/div[@class="container"]/p[@class="selector"]/strong/following-sibling::a' // zadolbali +' | //div[@class="pagination"]/span[@class="next"]/a' // nnm +' | //div[@class="navigation"]/a/span[@class="floatleft"]/..' // wordpress +' | //div[@class="navigation"]/div[@class="alignleft"]/a[contains(text(),"Older Entries")]' // wp +' | //p[@class="nav_link"]/a[last()]' // wp +' | html/body/table/tbody/tr/td/b[@class="link"]/a[@class="link"]' // vladimir.vladimirovich.ru +' | //td[@class="small" and starts-with(text(),"Страницы:")]/b/following-sibling::a' +' | //td[@class="dats" and starts-with(text(),"Страницы форума:")]/span[@class="small"]/b/following-sibling::a' // ru-board ); // Уже не влазит в одну строку? n = n || document.selectSingleNode( '//div[@class="pagesection"]/div[@class="pagelinks floatleft"]/strong/following-sibling::a[@class="navPages"]' // SMF +' | //strong[not(normalize-space(text())="...")]/following-sibling::a[@class="navPages"]' // SMF +' | //div[@id="baseSrch"]/table/tbody/tr/td/strong[not(normalize-space(text())="Страницы:")]/following-sibling::a' +' | //span[@class="prev_next"]/a/img[contains(@src,"next-right")]/..' +' | //div[@id="postbuttons_lower"]/descendant::strong/following-sibling::a' ); n = n || document.querySelector( ".comic-nav-next" // before wordpress ); n = n || document.querySelector( '#page_nav_next' +', a.navi-next' +', .b-pager__next, div.b-serp-pager__button > a' // yandex +', .prev_next a[rel="next"]' +', .pagenav a[rel="next"]' +', a.comicnavlink[rel="next"]' +', .minicomicnav a[rel="next"]' +', .comicnav #next a' +', td.pagn-next > a.gspr.next' // ebay +', #pagnNextLink.pagnNext' // amazon +', div#content > div.wp-pagenavi > div.alignleft > a' // wp +', span.nextprev_current+a' // http://prokofe.ru/plugins/forum/forum_viewtopic.php?38539.0 +', .page-next > a' // http://forum.onliner.by/ +', div.navigation > div.nav-previous > a' // wordpress +', div.navigation > div.left > a' // wp +', div.wp-pagenavi > a.nextpostslink' // wp +', div.page-navigation > div.alignleft > a' // wp +', div.navigation > div.alignleft > a' // wp +', nav#nav-below.navigation-paging > div.nav-previous > a' // wp +', nav.navigation.paging-navigation > div.nav-links > div.nav-previous > a' // wp +', div.next > a.ngg-browser-next' +', a#nextlink' // dle? +', .pagination > a.next-button' +', ul.g-paginator > li.g-text-right > a.g-button.ui-icon-right' +', div#paginator > div.pagination > a[alt="next"]' +', .paginator .pag_next > a' +', ul.pagination > li.active + li.hidden-xs > a' +', div#paginator > div.pagination > b+a' +', a.next.page-numbers' +', a.pagenav[title="Вперёд"]' ); n = n || document.querySelector( 'span.page_next > a' +', td.nav.next > a.next' +', a.pagination__link.pagination__next' +', ul.comicnav > li > a.navforward' +", div.pagenav > table > tbody > tr > td.alt1 > a[class='smallfont'][title^='Следующая страница']" +", div.displaycontainer > table > tbody > tr > td.catbg > div > span.small > b + a[href*='cgi-bin/yabb/YaBB.pl']" +", a.strNext" +", a.btn-next.part-nav-right" // https://ficbook.net/readfic/386384/11808293#part_content +", span.pagination>strong+a" +", span.gensmall + br + span.nav > b + a" // phpBB http://www.ghisler.ch/board/viewtopic.php?t=41086 +", table#pagination.topic .nav > p > b + a" +", div.paginator > a.forward" +", span.pages-num > a.selected + a" +", a.nav-next" +", .comicnav a[next]" +", ul.j-nav.j-page-nav > li.j-nav-item.j-page-nav-item.j-page-nav-item-prev > a" // lj +", html > body > table > tbody > tr > td > center > a[href*='/?skip=']" // lj +", td.meta>a[href*='/?skip=']" // lj +", div.stream-footer > p.prevnext > a.prev" // lj +", .comic-nav-next" +", div.pagination > ul > li.arrow.next > a" +", a.page-next" ); if (!n) { // alert(location.hostname+': FF link not found!'); return; } var forwardURL=n.href; var L=document.selectNodes('//link[@rel="next"]'); for (var l=0; l<L.length; l++) { L[l].parentNode.removeChild(L[l]); }; var ln=document.createElement('link'); ln.rel='next'; ln.href=forwardURL; document.body.appendChild(ln); //alert('FF link:\n'+forwardURL) },false); | Код: // ==UserScript== // @include * // ==/UserScript== (function(opera){ var ScriptName = 'fix_FastForward_DLE.js'; function addFF(url, replaceFlag){if (!url) return; if (replaceFlag) { var L=document.selectNodes('//link[@rel="next"]'); for (var l=0; l<L.length; l++) L[l].parentNode.removeChild(L[l]); } var ln=document.createElement('link'); ln.rel='next'; ln.href=url; document.body.appendChild(ln); } document.addEventListener('DOMContentLoaded',function(){ var nextPage = document.querySelector('div#dle-content > div.navigation > span:not(.nav_ext) + a'); if (nextPage) addFF(nextPage); var fullsearch = document.forms && document.forms.fullsearch; var n = document.querySelector('div#dle-content > div.navigation.ignore-select > a#nextlink'); n = n&&n.onclick.toString().match(/(list_submit\(\d+\))/); n=n&&'javascript:'+n[1]; if (!(n||fullsearch)) return; opera.postError(ScriptName); if (fullsearch) fullsearch.search_start.value++; addFF(fullsearch&&'javascript:document.forms.fullsearch.search_start.value++;document.forms.fullsearch.submit()'||n, true); },false); })(opera) | |