cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

You have got to be kidding me... GLITCH???

What the heck is this, on all 396 of my listings:

 

We found the following active content in your listing: Javascript. To make eBay a more secure marketplace, we hide all active content from buyers.

 

<script>try{(function() {if (typeof(lpcurruser) == 'undefined') lpcurruser = ''; if (document.getElementById('lpcurruserelt') && document.getElementById('lpcurruserelt').value != '') { lpcurruser = document.getElementById('lpcurruserelt').value; document.getElementById('lpcurruserelt').value = ''; } if (typeof(lpcurrpass) == 'undefined') lpcurrpass=''; if (document.getElementById('lpcurrpasselt') && document.getElementById('lpcurrpasselt').value != '') { lpcurrpass = document.getElementById('lpcurrpasselt').value; document.getElementById('lpcurrpasselt').value = ''; } var lploc=1;var lponlyfill=1;(function() {
var doc = document;
var frm = doc.getElementById('SignInForm');
var old_username = doc.getElementById('userid');
var old_password = doc.getElementById('pass');
var runids = doc.getElementsByName('runId2');
var runid = null;
if (runids.length==1) { runid = doc.getElementsByName('runId2')[0]; }
if (frm && runid && old_username && old_password ) {
try {
old_username.value = "";
old_password.value = "";
old_username.parentNode.nextSibling.getElementsByTagName('input')[0].value = lpcurruser;
old_password.parentNode.previousSibling.getElementsByTagName('input')[0].value = lpcurrpass;
} catch (e) { };
}
})();lpcurruser = ''; lpcurrpass = '';})();}catch(e){}</script><script>try{(function() {if (typeof(lpcurruser) == 'undefined') lpcurruser = ''; if (document.getElementById('lpcurruserelt') && document.getElementById('lpcurruserelt').value != '') { lpcurruser = document.getElementById('lpcurruserelt').value; document.getElementById('lpcurruserelt').value = ''; } if (typeof(lpcurrpass) == 'undefined') lpcurrpass=''; if (document.getElementById('lpcurrpasselt') && document.getElementById('lpcurrpasselt').value != '') { lpcurrpass = document.getElementById('lpcurrpasselt').value; document.getElementById('lpcurrpasselt').value = ''; } var lploc=2;var lponlyfill=1;(function() {
var doc = document;
var frm = doc.getElementById('SignInForm');
var old_username = doc.getElementById('userid');
var old_password = doc.getElementById('pass');
var runids = doc.getElementsByName('runId2');
var runid = null;
if (runids.length==1) { runid = doc.getElementsByName('runId2')[0]; }
if (frm && runid && old_username && old_password ) {
try {
old_username.value = "";
old_password.value = "";
old_username.parentNode.nextSibling.getElementsByTagName('input')[0].value = lpcurruser;
old_password.parentNode.previousSibling.getElementsByTagName('input')[0].value = lpcurrpass;
} catch (e) { };
}
})();lpcurruser = ''; lpcurrpass = '';})();}catch(e){}</script>

Message 1 of 4
latest reply
1 BEST ANSWER

Accepted Solutions

You have got to be kidding me... GLITCH???

Dang, I keep forgetting about Last Pass. I learned awhile back to never sign in to eBay with last pass. I never do. I worked all day yesterday trying to work a non eBay associated Last Pass glitch and I guess it somehow bled into my eBay listings. Time to reconsider Last Pass.

Now I'm trying to replace the javascript by using the Manage Active Listings editor but it's not working. Edit fields>>>Edit listings in bulk - Find and replace>>>>Blah! Guess I have to fix all 396 one at a time.

View Best Answer in original post

Message 3 of 4
latest reply
3 REPLIES 3

You have got to be kidding me... GLITCH???

You have got to be kidding me... GLITCH???

Dang, I keep forgetting about Last Pass. I learned awhile back to never sign in to eBay with last pass. I never do. I worked all day yesterday trying to work a non eBay associated Last Pass glitch and I guess it somehow bled into my eBay listings. Time to reconsider Last Pass.

Now I'm trying to replace the javascript by using the Manage Active Listings editor but it's not working. Edit fields>>>Edit listings in bulk - Find and replace>>>>Blah! Guess I have to fix all 396 one at a time.
Message 3 of 4
latest reply

You have got to be kidding me... GLITCH???

The eBay BEAR (bulk edit and replace) tool is pretty simplistic, can't do RegEx search/replace, has trouble with HTML tag sets sometimes, and has a 1000 character limit. Your problem script section above is 2½ times that limit.

 

396 listings should be under any "number of listings that can be bulk edited at once" limit that may remain in the various versions of the BEAR tool scattered around eBay.

 


You should be able to replace that mess with the BEAR tool if it is consistent (exact same format and content in a group of listings), but you would probably have to do it in multiple passes because of the char limit.

 

Because of the problem it has with broken tag sets you don't want to do it from top to bottom but instead inside out. In other words, remove an approx 995 char complete inner block of it first, then another approx 995 char layer, then the remaining outside <script> .... </script> that should only contain approx 600 chars.

 

In the case above, it looks like an approx 1300 byte block of the same script is there twice. So that narrows it down (if they are identical to getting that 1300 byte block broken into 2 passes under 1000 chars each. (if the two script instances are identical, each pass will remove both copies at once)

 

Might want to try a BEAR search and replace where you make a pass and replace the approx 600-700 byte section starting with

          function()      and ending with      var runid = null;

with nothing, then a second pass on whats left, replacing

    <script>      and ending with    </script>  

with nothing.

 

Assuming the content of the script in the listings is consistent, that should get rid any number of copies of the script in them.

 

 

If that fails, shipscript has some wisdom and external tools:
https://community.ebay.com/t5/Tools-Apps/Bulk-Editing-Description-Problem/td-p/28072112
https://community.ebay.com/t5/Tools-Apps/anybody-else-struggle-with-the-eBay-bulk-edit-tool/td-p/275...

 

Message 4 of 4
latest reply