2020-06-20 16:09:36 +00:00
|
|
|
const sizes = {
|
|
|
|
laptop: {
|
|
|
|
width: 1366,
|
|
|
|
height: 768
|
|
|
|
},
|
|
|
|
phone: {
|
|
|
|
width: 450,
|
|
|
|
height: 828
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
const cookies = {
|
|
|
|
default: {
|
|
|
|
settings: "d8f3967f153a5422ba8bd068da4dca5f"
|
|
|
|
},
|
|
|
|
ptc: {
|
|
|
|
settings: "a513b2b80db331a60f875bc2679ee35e"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-20 07:15:58 +00:00
|
|
|
function generateSetup(pageName, url, sizeName, cookiesName, scrolls = 1) {
|
2020-06-20 16:09:36 +00:00
|
|
|
return {
|
|
|
|
url: url,
|
|
|
|
filename: `${pageName}-${sizeName}-${cookiesName}`,
|
|
|
|
size: sizes[sizeName],
|
2020-07-07 10:08:47 +00:00
|
|
|
cookies: cookies[cookiesName],
|
|
|
|
scrolls: scrolls
|
2020-06-20 16:09:36 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-20 07:15:58 +00:00
|
|
|
function generateAllSetups(pageName, url, scrolls) {
|
|
|
|
return Object.keys(cookies).map(cookieKey =>
|
|
|
|
Object.keys(sizes).map(sizeKey =>
|
|
|
|
generateSetup(pageName, url, sizeKey, cookieKey, scrolls)
|
|
|
|
)
|
|
|
|
).flat()
|
|
|
|
}
|
2020-07-07 10:08:47 +00:00
|
|
|
|
2020-07-20 07:15:58 +00:00
|
|
|
module.exports = [
|
|
|
|
...generateAllSetups("home", "/"),
|
|
|
|
...generateAllSetups("settings", "/settings"),
|
|
|
|
...generateAllSetups("anti__reality", "/u/anti__reality?page=3", 2),
|
|
|
|
...generateAllSetups("post", "/p/CCyko7oJ-ta"),
|
|
|
|
...generateAllSetups("gallery", "/p/CCbVsCMpizf", 2)
|
2020-06-20 16:09:36 +00:00
|
|
|
]
|