|
@@ -105,6 +105,10 @@ class Webshot extends CallableInstance<[Tweets, (...args) => void, number], Prom
|
|
|
})
|
|
|
.then(() => page.route('*:\/\/video.twimg.com\/**', route => { route.abort(); }))
|
|
|
.then(() => page.goto(url, {waitUntil: 'load', timeout: getTimeout()}))
|
|
|
+ .then(() => Promise.race([
|
|
|
+ page.waitForSelector('article'),
|
|
|
+ page.click('#placeholder+#ScriptLoadFailure input[value="Try again"]', {timeout: getTimeout()}),
|
|
|
+ ]))
|
|
|
// hide header, "more options" button, like and retweet count
|
|
|
.then(() => page.addStyleTag({
|
|
|
content: 'header,#layers{display:none!important}article{background-color:transparent!important}' +
|