Advertisement
Guest User

eBay Print Page scriplet

a guest
Sep 4th, 2017
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. Scriplet code to go to the Print Page in eBay.
  2. Paste this as the 'location' property in a bookmark link in Firefox or other browser which can handle javascript in bookmarks:
  3.  
  4. javascript:window.location.href='http://' + document.domain.replace(/^\w+\./,'cgi.') + '/ws/eBayISAPI.dll?ViewItem&rt=nc&print=all&' + (x=document.documentElement.innerHTML).match(/&(item=\d+)/)[1] + '&si=' + x.concat(document.documentElement.textContent).match(/&(amp;)?si=(.{27,81}\x253D)/)[2]
  5.  
  6. This enables to go to the Print Page again when you click on this bookmark when you current tab shows an eBay item.
  7.  
  8. Note: In rare cases it might not work, in that case make sure you are logged in in eBay.
  9. No garantuee is given it will always work in all circumstances or for how long (eBay has the very annoying habit to brake working stuff). But it should work more than any other currently suggested method.
  10.  
  11. How it works:
  12. The Print Page on eBay still exists, despite the link not been given anymore since a few years.
  13. So, to get to the Print Page of an item you need to know its unique link.
  14. The javascript above builds this link by looking in the html-code of the currently displayed item.
  15. First, it grabs the 'ID number' for the item from the links in the html-code ("&item=xxxxxxxxx").
  16. Secondly, you also need the 'SI parameter' of the item, so it searches for that too ("&si=xxxxxxxxx").
  17. It then concatenates everything together to form the Print Page link for that item.
  18.  
  19. See http://community.ebay.com/t5/Shipping-Returns/Print-listing-button-gone-Why/m-p/27443578#M202963
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement