ebay-popularity-sort
ebay-popularity-sort copied to clipboard
Include and sort results from all pages
this is a "nice to have enhancement",
some additional "top items" results are hidden in the next pages (for sellers with more than 200 items), including these results in the first page IMO is a nice enhancement
BTW, slick extension. Extremely useful. I was actually very close to implement the exact same thing myself until I bumped into your comment which lead me to this project.
well done
Hi @jossef, This is a great idea but will be slightly nontrivial to achieve.
The extension would need to request the additional pages via XHR and extract the results from there, while displaying a Loading... indicator to the user.
Would you like to give this a shot? 👍
Hey I would not mind trying it out.
Cool, looking forward to your PR! 👍
Sorry for the late reply I had a few things going on and had to work. So what doi need to do in order to try the next page feature? I am not sure what to do could you let me know?
Sure @Amazingsteve , I would implement it like this:
- In content.js#L13, the script should extract the links to the subsequent search result pages at the bottom of the page using jQuery element selectors (I think we should limit this to 10 pages max so it doesn't take forever)
- It should then fetch the HTML content of these pages using $.ajax() while displaying a
Loading...indicator to the user, preferably where the search results are being displayed, as an overlay - The script should extract the search results from each page's HTML DOM using the existing logic
- The script will then have access to all search results and be able to sort them all by popularity
Let me know if anything is unclear!
Is there anyway you could set this up for me?
@Amazingsteve Do you mean to ask if I could complete the necessary changes?
Would anyone like to take this up? 😄