Skip to content

Commit c54e50b

Browse files
committed
新增 [豆瓣] 支持(集评、短评、影评)
1 parent f63692d commit c54e50b

1 file changed

Lines changed: 45 additions & 2 deletions

File tree

Autopage.user.js

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// ==UserScript==
22
// @name 自动无缝翻页
3-
// @version 1.2.1
3+
// @version 1.2.2
44
// @author X.I.U
5-
// @description 自动无缝翻页,目前支持:423Down、Apphot、不死鸟、小众软件、异次元软件、微当下载、FitGirl Repacks、AlphaCoders、PubMed、三国杀论坛、百分浏览器论坛
5+
// @description 自动无缝翻页,目前支持:423Down、Apphot、不死鸟、小众软件、异次元软件、微当下载、豆瓣、FitGirl Repacks、AlphaCoders、PubMed、三国杀论坛、百分浏览器论坛
66
// @match *://www.423down.com/*
77
// @exclude *://www.423down.com/*.html
88
// @match *://apphot.cc/*
@@ -18,6 +18,7 @@
1818
// @match *://club.sanguosha.com/*
1919
// @match *://www.centbrowser.net/*
2020
// @match *://pubmed.ncbi.nlm.nih.gov/?term=*
21+
// @match *://movie.douban.com/*
2122
// @icon https://i.loli.net/2021/03/07/rdijeYm83pznxWq.png
2223
// @grant GM_xmlhttpRequest
2324
// @grant GM_registerMenuCommand
@@ -218,6 +219,39 @@
218219
replaceE: 'css;#pageGroup',
219220
scrollDelta: 700
220221
}
222+
},
223+
douban_subject_comments: {
224+
SiteTypeID: 15,
225+
pager: {
226+
type: 1,
227+
nextLink: '//a[@class="next"][@href]',
228+
pageElement: 'css;#comments > .comment-item',
229+
HT_insert: ['css;#paginator', 1],
230+
replaceE: 'css;#paginator',
231+
scrollDelta: 700
232+
}
233+
},
234+
douban_subject_reviews: {
235+
SiteTypeID: 16,
236+
pager: {
237+
type: 1,
238+
nextLink: '//link[@rel="next"][@href]',
239+
pageElement: 'css;.review-list > div',
240+
HT_insert: ['css;.review-list', 3],
241+
replaceE: 'css;.paginator',
242+
scrollDelta: 700
243+
}
244+
},
245+
douban_subject_episode: {
246+
SiteTypeID: 17,
247+
pager: {
248+
type: 1,
249+
nextLink: '//link[@rel="next"][@href]',
250+
pageElement: 'css;#comments > div',
251+
HT_insert: ['css;#comments', 3],
252+
replaceE: 'css;.paginator',
253+
scrollDelta: 700
254+
}
221255
}
222256
};
223257

@@ -288,6 +322,15 @@
288322
case "pubmed.ncbi.nlm.nih.gov":
289323
curSite = DBSite.pubmed_postslist;
290324
break;
325+
case "movie.douban.com":
326+
if (location.pathname.indexOf('/subject') > -1 && location.pathname.indexOf('/comments') > -1) { // 短评
327+
curSite = DBSite.douban_subject_comments;
328+
} else if (location.pathname.indexOf('/subject') > -1 && location.pathname.indexOf('/reviews') > -1) { // 影评
329+
curSite = DBSite.douban_subject_reviews;
330+
}else if(location.pathname.indexOf('/subject') > -1 && location.pathname.indexOf('/episode') > -1) { // 电视剧每集评论
331+
curSite = DBSite.douban_subject_episode;
332+
}
333+
break;
291334
}
292335
curSite.pageUrl = ""; // 下一页URL
293336
pageLoading(); // 自动无缝翻页

0 commit comments

Comments
 (0)