mirror of
https://github.com/Maks1mS/userscripts.git
synced 2025-01-13 01:51:04 +03:00
[FreeOzonDPR] update to 0.2.1
replace delivery in checkout
This commit is contained in:
parent
38b3fe10be
commit
5f002ba7f7
@ -1,8 +1,8 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name БЕСПЛАТНЫЕ ПВЗ ОЗОН
|
// @name БЕСПЛАТНЫЕ ПВЗ ОЗОН
|
||||||
// @namespace https://github.com/Maks1mS/userscripts
|
// @namespace https://github.com/Maks1mS/userscripts
|
||||||
// @version 0.2
|
// @version 0.2.1
|
||||||
// @description Заменяет партнерские ПВЗ на понятные адреса
|
// @description Заменяет партнерские ПВЗ на понятные адреса
|
||||||
// @author Maxim Slipenko
|
// @author Maxim Slipenko
|
||||||
// @match https://www.ozon.ru/*
|
// @match https://www.ozon.ru/*
|
||||||
// @icon https://www.google.com/s2/favicons?sz=64&domain=ozon.ru
|
// @icon https://www.google.com/s2/favicons?sz=64&domain=ozon.ru
|
||||||
@ -107,8 +107,9 @@
|
|||||||
const headerAddress = qs('[data-widget="addressBookBarWeb"] .tsBody400Small');
|
const headerAddress = qs('[data-widget="addressBookBarWeb"] .tsBody400Small');
|
||||||
const commonAddressBook = qsa('[data-widget="commonAddressBook"] .tsBody500Medium');
|
const commonAddressBook = qsa('[data-widget="commonAddressBook"] .tsBody500Medium');
|
||||||
const delivery = qsa('[data-widget="orderDeliveryDetails"] .tsBody500Medium');
|
const delivery = qsa('[data-widget="orderDeliveryDetails"] .tsBody500Medium');
|
||||||
|
const delivery2 = qsa('[data-widget="rfbsAddressInfo"] .tsBody500Medium');
|
||||||
|
|
||||||
const elements = [headerAddress, ...commonAddressBook, ...delivery];
|
const elements = [headerAddress, ...commonAddressBook, ...delivery, ...delivery2];
|
||||||
|
|
||||||
elements.forEach(handleElement);
|
elements.forEach(handleElement);
|
||||||
}
|
}
|
||||||
@ -150,7 +151,7 @@
|
|||||||
called = true;
|
called = true;
|
||||||
updateInfoALL();
|
updateInfoALL();
|
||||||
onSelectorAdd(document.body, [
|
onSelectorAdd(document.body, [
|
||||||
'[data-widget="commonAddressBook"]',
|
'[data-widget="commonAddressBook"]',
|
||||||
], updateInfoALL);
|
], updateInfoALL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user