|
@@ -134,8 +134,8 @@ class Webshot extends CallableInstance<[LazyMediaItem[], (...args) => void, numb
|
|
|
})
|
|
|
// hide header, footer, "more options" button, like and share count, carousel navigator, and comments
|
|
|
.then(() => page.addStyleTag({content:
|
|
|
- 'nav,footer,header+div,header+div+div>div>div+div,header div div div+div,' +
|
|
|
- 'article section,article section+div>ul>:not(div),article button,canvas{display:none!important} ' +
|
|
|
+ 'nav,footer,header+div,header+div+div>div>div+div,article button,canvas,' +
|
|
|
+ 'article section,article section+div>ul>:not(div),li [tabindex="0"] div:not(:first-child){display:none!important} ' +
|
|
|
'section+div{overflow:hidden} section+*>*{position:relative!important} article{border-bottom:1px solid!important}',
|
|
|
}))
|
|
|
.then(() => page.addStyleTag({
|
|
@@ -162,7 +162,7 @@ class Webshot extends CallableInstance<[LazyMediaItem[], (...args) => void, numb
|
|
|
}).on('parsed', function () {
|
|
|
const idx = (x: number, y: number) => (this.width * y + x) << 2;
|
|
|
let boundary: number = null;
|
|
|
- for (let y = this.height - 1; y > this.height - 1920; y -= zoomFactor) {
|
|
|
+ for (let y = this.height - 1; y > this.height - 3840; y -= zoomFactor) {
|
|
|
if (
|
|
|
this.data[idx(zoomFactor, y)] <= 38 &&
|
|
|
this.data[idx(zoomFactor, y)] === this.data[idx(this.width - zoomFactor, y)] &&
|
|
@@ -204,7 +204,7 @@ class Webshot extends CallableInstance<[LazyMediaItem[], (...args) => void, numb
|
|
|
});
|
|
|
return promise.then(data => {
|
|
|
if (data.boundary === null) {
|
|
|
- return this.renderWebshot(url, height + 1920, webshotDelay, ...morePostProcessings);
|
|
|
+ return this.renderWebshot(url, height + 3840, webshotDelay, ...morePostProcessings);
|
|
|
} else return data.path;
|
|
|
}).catch(error => this.reconnect(error)
|
|
|
.then(() => this.renderWebshot(url, height, webshotDelay, ...morePostProcessings))
|
|
@@ -269,10 +269,10 @@ class Webshot extends CallableInstance<[LazyMediaItem[], (...args) => void, numb
|
|
|
// invoke webshot
|
|
|
if (this.mode === 0) {
|
|
|
const url = linkBuilder({postUrlSegment: item.code});
|
|
|
- promise = promise.then(() => this.renderWebshot(url, 1920, webshotDelay, page =>
|
|
|
+ promise = promise.then(() => this.renderWebshot(url, 3840, webshotDelay, page =>
|
|
|
// display full name
|
|
|
page.addStyleTag({content:
|
|
|
- 'header>div>div+div{font-size:smaller; line-height:calc(4/3)}' +
|
|
|
+ 'header>div>div+div{font-size:12px; line-height:15px; padding-top:0!important}' +
|
|
|
`header>div>div+div::before{content:"${item.user.full_name}"; color:#8e8e8e; font-weight:bold}`,
|
|
|
})
|
|
|
))
|