|
2 | 2 | // @name 自动无缝翻页 |
3 | 3 | // @version 1.1.6 |
4 | 4 | // @author X.I.U |
5 | | -// @description 自动无缝翻页,目前支持:423Down、Apphot、小众软件、PubMed、异次元软件、不死鸟、三国杀论坛 |
| 5 | +// @description 自动无缝翻页,目前支持:423Down、Apphot、不死鸟、小众软件、异次元软件、三国杀论坛、PubMed |
6 | 6 | // @match *://www.423down.com/* |
7 | 7 | // @exclude *://www.423down.com/*.html |
8 | 8 | // @match *://apphot.cc/* |
|
25 | 25 |
|
26 | 26 | (function() { |
27 | 27 | // 注册脚本菜单 |
28 | | - GM_registerMenuCommand('反馈 & 申请添加支持', function () {window.GM_openInTab('https://github.com/XIU2/UserScript#xiu2userscript', {active: true,insert: true,setParent: true});}); |
| 28 | + GM_registerMenuCommand('反馈 & 欢迎申请支持', function () {window.GM_openInTab('https://github.com/XIU2/UserScript#xiu2userscript', {active: true,insert: true,setParent: true});window.GM_openInTab('https://greasyfork.org/zh-CN/scripts/419215/feedback', {active: true,insert: true,setParent: true});}); |
29 | 29 |
|
30 | 30 | // 默认 ID 为 0 |
31 | 31 | var curSite = {SiteTypeID: 0}; |
|
58 | 58 | scrollDelta: 1500 |
59 | 59 | } |
60 | 60 | }, |
61 | | - appinn_postslist: { |
| 61 | + iao_su_postslist: { |
62 | 62 | SiteTypeID: 3, |
| 63 | + pager: { |
| 64 | + type: 1, |
| 65 | + nextLink: '//li[@class="btn btn-primary next"]//a[@href]', |
| 66 | + pageElement: 'css;#index > article, #archive > article', |
| 67 | + HT_insert: ['css;ol.page-navigator', 1], |
| 68 | + replaceE: 'css;ol.page-navigator', |
| 69 | + scrollDelta: 800, |
| 70 | + beforeFunction: iao_su_postslist_beforeFunction |
| 71 | + } |
| 72 | + }, |
| 73 | + appinn_postslist: { |
| 74 | + SiteTypeID: 4, |
63 | 75 | pager: { |
64 | 76 | type: 1, |
65 | 77 | nextLink: '//a[@class="next page-numbers"][@href]', |
|
69 | 81 | scrollDelta: 1500 |
70 | 82 | } |
71 | 83 | }, |
72 | | - pubmed_postslist: { |
73 | | - SiteTypeID: 4, |
| 84 | + iplaysoft_postslist: { |
| 85 | + SiteTypeID: 5, |
| 86 | + pager: { |
| 87 | + type: 1, |
| 88 | + nextLink: '//div[@class="pagenavi"]//a[@title="下一页"][@href]', |
| 89 | + pageElement: 'css;#postlist > div.entry', |
| 90 | + HT_insert: ['css;#postlist > .pagenavi-button', 1], |
| 91 | + replaceE: 'css;.pagenavi-button, .pagenavi', |
| 92 | + scrollDelta: 1200, |
| 93 | + beforeFunction: iplaysoft_postslist_beforeFunction |
| 94 | + } |
| 95 | + }, |
| 96 | + iplaysoft_postcomments: { |
| 97 | + SiteTypeID: 6, |
74 | 98 | pager: { |
75 | 99 | type: 2, |
76 | | - nextLink: 'button.load-button.next-page', |
77 | | - nextText: 'Show more', |
78 | | - scrollDelta: 1500 |
| 100 | + nextLink: '#loadHistoryComments', |
| 101 | + nextText: '展开后面', |
| 102 | + scrollDelta: 1200 |
79 | 103 | } |
80 | 104 | }, |
81 | 105 | sanguosha_forum: { |
82 | | - SiteTypeID: 5, |
| 106 | + SiteTypeID: 7, |
83 | 107 | pager: { |
84 | 108 | type: 2, |
85 | 109 | nextLink: '#autopbn', |
|
88 | 112 | } |
89 | 113 | }, |
90 | 114 | sanguosha_thread: { |
91 | | - SiteTypeID: 6, |
| 115 | + SiteTypeID: 8, |
92 | 116 | pager: { |
93 | 117 | type: 1, |
94 | 118 | nextLink: '//a[@class="nxt"][@href]', |
|
99 | 123 | } |
100 | 124 | }, |
101 | 125 | sanguosha_search: { |
102 | | - SiteTypeID: 7, |
| 126 | + SiteTypeID: 9, |
103 | 127 | pager: { |
104 | 128 | type: 1, |
105 | 129 | nextLink: '//a[@class="nxt"][@href]', |
|
109 | 133 | scrollDelta: 800 |
110 | 134 | } |
111 | 135 | }, |
112 | | - iplaysoft_postslist: { |
113 | | - SiteTypeID: 8, |
114 | | - pager: { |
115 | | - type: 1, |
116 | | - nextLink: '//div[@class="pagenavi"]//a[@title="下一页"][@href]', |
117 | | - pageElement: 'css;#postlist > div.entry', |
118 | | - HT_insert: ['css;#postlist > .pagenavi-button', 1], |
119 | | - replaceE: 'css;.pagenavi-button, .pagenavi', |
120 | | - scrollDelta: 1200, |
121 | | - beforeFunction: iplaysoft_postslist_beforeFunction |
122 | | - } |
123 | | - }, |
124 | | - iplaysoft_postcomments: { |
125 | | - SiteTypeID: 9, |
126 | | - pager: { |
127 | | - type: 2, |
128 | | - nextLink: '#loadHistoryComments', |
129 | | - nextText: '展开后面', |
130 | | - scrollDelta: 1200 |
131 | | - } |
132 | | - }, |
133 | | - iao_su_postslist: { |
| 136 | + pubmed_postslist: { |
134 | 137 | SiteTypeID: 10, |
135 | 138 | pager: { |
136 | | - type: 1, |
137 | | - nextLink: '//li[@class="btn btn-primary next"]//a[@href]', |
138 | | - pageElement: 'css;#index > article, #archive > article', |
139 | | - HT_insert: ['css;ol.page-navigator', 1], |
140 | | - replaceE: 'css;ol.page-navigator', |
141 | | - scrollDelta: 1000, |
142 | | - beforeFunction: iao_su_postslist_beforeFunction |
| 139 | + type: 2, |
| 140 | + nextLink: 'button.load-button.next-page', |
| 141 | + nextText: 'Show more', |
| 142 | + scrollDelta: 1500 |
143 | 143 | } |
144 | | - }, |
| 144 | + } |
145 | 145 | }; |
146 | 146 |
|
147 | 147 |
|
|
0 commit comments