0
0
mirror of https://github.com/Maks1mS/free-ozon-dpr.git synced 2024-12-23 10:32:58 +03:00

fix update script

This commit is contained in:
Maxim Slipenko 2024-12-21 14:45:30 +03:00
parent fadb204413
commit 84af1913c5
3 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ import {
async function main() {
await woyag();
// - await sevenDostavka();
// await sevenDostavka();
await ozonWbDpr();
await globalExpress();
}

View File

@ -181,7 +181,7 @@ async function globalExpress() {
source: MAIN_URL,
points: points.map((p) => ({
...p,
operationTime: `<a href="https://vk.com/aliexpress___delivery?w=address-124759560_72654">ГРАФИК РАБОТЫ</a>`,
operationTime: `<a href="https://vk.com/global_express_dnr?w=address-124759560_72654">ГРАФИК РАБОТЫ</a>`,
})),
},
undefined,

View File

@ -83,8 +83,8 @@ async function getFromSite() {
const scripts = document.querySelectorAll("script");
for (let script of scripts) {
if (script.textContent.includes('descr: "Бесплатный озон')) {
let x = script.textContent.split("[\n{\n").pop().split("\n},\n]")[0];
if (script.textContent.includes('descr:"Бесплатный озон')) {
let x = script.textContent.split("[{").pop().split("},]")[0];
if (x) {
const points = new Function(`return [{${x}}]`)();