|
31 | 31 | // @name:da Pagetual |
32 | 32 | // @name:fr-CA Pagetual |
33 | 33 | // @namespace hoothin |
34 | | -// @version 1.9.37.118 |
| 34 | +// @version 1.9.37.119 |
35 | 35 | // @description Perpetual pages - powerful auto-pager script. Auto fetching next paginated web pages and inserting into current page for infinite scroll. Support thousands of web sites without any rule. |
36 | 36 | // @description:zh-CN 终极自动翻页 - 加载并拼接下一分页内容至当前页尾,智能适配任意网页 |
37 | 37 | // @description:zh-TW 終極自動翻頁 - 加載並拼接下一分頁內容至當前頁尾,智能適配任意網頁 |
|
3034 | 3034 | ".next>button", |
3035 | 3035 | "a[alt=next]", |
3036 | 3036 | ".pg_area>em+a", |
3037 | | - "button.next:not([disabled])", |
3038 | | - ".btn_next:not([disabled])", |
3039 | | - ".btn-next:not([disabled])", |
3040 | 3037 | "a#linkNext", |
| 3038 | + ".page>em+a", |
| 3039 | + "a.page_next", |
3041 | 3040 | "body a[class*=page__next]", |
3042 | 3041 | "body [class*=pager]>a.next", |
3043 | 3042 | "body [class*=pagination-next]>a", |
|
3049 | 3048 | "body [class*=paginat] [class*=next-next]", |
3050 | 3049 | "body [class*=paginat] [class*=next]", |
3051 | 3050 | "body [class*=paginat] [class*=right]", |
3052 | | - ".page>em+a", |
3053 | 3051 | "[name*=nextPage]", |
| 3052 | + "button.next:not([disabled])", |
| 3053 | + ".btn_next:not([disabled])", |
| 3054 | + ".btn-next:not([disabled])", |
3054 | 3055 | '//button[contains(@class, "Page")][text()="Next"]', |
3055 | 3056 | '//button[contains(@class, "page")][text()="next"]' |
3056 | 3057 | ]; |
|
8480 | 8481 | selObj = selection && selection.cloneContents().children[0]; |
8481 | 8482 | if (selObj && !compareNodeName(selObj, ["img"])) selObj = false; |
8482 | 8483 | } |
8483 | | - if (selObj) { |
| 8484 | + if (selObj && selObj.trim()) { |
8484 | 8485 | return; |
8485 | 8486 | } |
8486 | 8487 | } catch (e) {} |
|
8895 | 8896 | let tdNum = 0; |
8896 | 8897 | if (exampleStyle.display == "table-row") { |
8897 | 8898 | [].forEach.call(example.children, el => { |
8898 | | - tdNum += el.colSpan || 1; |
| 8899 | + if (el.offsetParent) { |
| 8900 | + tdNum += el.colSpan || 1; |
| 8901 | + } |
8899 | 8902 | }); |
8900 | 8903 | } else { |
8901 | 8904 | [].forEach.call(example.children, el => { |
|
0 commit comments