Skip to content
Permalink
Browse files

Fix getting user location on updated summary page

  • Loading branch information...
malcom committed Jul 6, 2019
1 parent d867986 commit 67b27ae80a9f66ee21add19738337d6d254fe0f1
Showing with 4 additions and 4 deletions.
  1. +4 −4 allegro-seller-info.user.js
@@ -103,10 +103,10 @@
var node = document.getElementsByName('delivery')[0].nextElementSibling;

var loc;
for (var p of node.getElementsByTagName('p')) {
if (p.innerText.startsWith('Wysy\u0142ka z:')) {
var i = p.innerText.lastIndexOf(', Polska');
loc = p.innerText.substr(10, i != -1 ? i - 10 : undefined).trim();
for (var e of node.getElementsByTagName('*')) {
if (e.innerText.startsWith('Wysy\u0142ka z:')) {
var i = e.innerText.lastIndexOf(', Polska');
loc = e.innerText.substr(10, i != -1 ? i - 10 : undefined).trim();
break;
}
}

0 comments on commit 67b27ae

Please sign in to comment.
You can’t perform that action at this time.