17 lines
462 B
JavaScript
17 lines
462 B
JavaScript
(function () {
|
|
let data = null;
|
|
const elements = document.querySelectorAll(".ng-scope");
|
|
for (let i = 0; i < elements.length; i++) {
|
|
const scope = window.angular?.element(elements[i]).scope();
|
|
if (scope && scope.auction) {
|
|
console.log("Found at index:", i, "Auction:", scope.bidHistory);
|
|
data = scope.bidHistory;
|
|
break;
|
|
}
|
|
}
|
|
|
|
if (data) {
|
|
window.postMessage({ source: "my-extension", bidHistory: data }, "*");
|
|
}
|
|
})();
|