|
@@ -103,6 +103,7 @@ class Webshot extends CallableInstance<[Tweets, (...args) => void, number], Prom
|
|
|
width: width / zoomFactor,
|
|
|
height: height / zoomFactor,
|
|
|
})
|
|
|
+ .then(() => page.route('*:\/\/video.twimg.com\/**', route => { route.abort(); }))
|
|
|
.then(() => page.goto(url, {waitUntil: 'load', timeout: getTimeout()}))
|
|
|
// hide header, "more options" button, like and retweet count
|
|
|
.then(() => page.addStyleTag({
|
|
@@ -116,7 +117,7 @@ class Webshot extends CallableInstance<[Tweets, (...args) => void, number], Prom
|
|
|
.then(() => page.evaluate(() => {
|
|
|
const poll = setInterval(() => {
|
|
|
document.querySelectorAll('div[data-testid="placementTracking"]').forEach(container => {
|
|
|
- if (container) {
|
|
|
+ if (container.querySelector('div[role="button"] svg')) {
|
|
|
container.innerHTML = container.innerHTML;
|
|
|
clearInterval(poll);
|
|
|
}
|