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

Function waterfallStyle

Autopage.user.js:1401–1411  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1399 }
1400 // [Discuz! 论坛] 图片模式列表样式预处理
1401 function waterfallStyle() {
1402 let waterfall_ = getCSS('#waterfall > li:first-child');
1403 if (waterfall_ && waterfall_.style && waterfall_.style.width) {
1404 insStyle(`#waterfall {height: auto !important; width: 100% !important;} #waterfall > li {width: ${waterfall_.style.width} !important; float: left !important; position: inherit !important; left: auto !important; top: auto !important;}`);
1405 } else {
1406 waterfall_ = getAllCSS('#waterfall > dl');
1407 if (waterfall_ && waterfall_.length > 5) {
1408 insStyle(`#waterfall > dl {display: unset !important;}`);
1409 }
1410 }
1411 }
1412
1413
1414 // [NexusMods] 获取下一页地址

Callers 1

discuzForumFunction · 0.85

Calls 3

getCSSFunction · 0.85
insStyleFunction · 0.85
getAllCSSFunction · 0.70

Tested by

no test coverage detected