MCPcopy Index your code
hub / github.com/XIU2/UserScript / discuzForum

Function discuzForum

Autopage.user.js:1295–1316  ·  view source on GitHub ↗
(m)

Source from the content-addressed store, hash-verified

1293
1294 // [Discuz! 论坛] 判断各版块帖子列表类型
1295 function discuzForum(m) {
1296 if (m == 'm') { // 手机版页面
1297 if (getCSS('a.loadmore')) {
1298 curSite = DBSite.discuz_m_forum;
1299 } else if (getCSS('.threadlist')) {
1300 curSite = DBSite.discuz_m; curSite.pager.pageE = '.threadlist > ul > li';
1301 } else if (getCSS('[id^="normalthread_"]')) {
1302 curSite = DBSite.discuz_m; curSite.pager.pageE = '[id^="normalthread_"]:not(.ZDlist)';
1303 }
1304 if (curSite.SiteTypeID !== 0 && location.hostname === 'keylol.com') {curSite.history = false; urlC = true;}
1305 } else {
1306 if (getCSS('#autopbn')) { // 判断是否有 [下一页] 按钮
1307 curSite = DBSite.discuz_forum;
1308 } else if (getCSS('#waterfall')) { // 判断是否为图片模式
1309 if (!getCSS('#pgbtn.pgbtn>a[href^=javascript]')) { // 如果各版块帖子列表已存在这个元素,说明自带了无缝翻页
1310 curSite = DBSite.discuz_waterfall; waterfallStyle(); // 图片模式列表样式预处理
1311 }
1312 } else {
1313 curSite = DBSite.discuz_guide;
1314 }
1315 }
1316 }
1317 // [Discuz! 论坛] 判断手机版帖子内
1318 function discuzThreadM() {
1319 if (getCSS('[id^="pid"]')) {

Callers 1

discuz_Function · 0.85

Calls 2

getCSSFunction · 0.85
waterfallStyleFunction · 0.85

Tested by

no test coverage detected