Skip to content

Instantly share code, notes, and snippets.

@petrstepanov
Last active September 30, 2022 02:32
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petrstepanov/8796c43caabce7c0ad06cefcba235dcc to your computer and use it in GitHub Desktop.
Save petrstepanov/8796c43caabce7c0ad06cefcba235dcc to your computer and use it in GitHub Desktop.
Ebay javascript. Leave feedback programmatically.
// Open eBay feedback page in your browser: https://www.ebay.com/fdbk/leave_feedback
// Paste following code in the inspector console:
var comments=['All good. Nice buyer. Fast payment!',
'Nice buyer. Quick payment!',
'A+ buyer. Come back any time!',
'Good buyer. Thanks for your business',
'Nice buyer quick payment.',
'Definitely recommend this buyer.'];
$('[id*="single-feedback-template"]').each(function(index) {
var that = this;
setTimeout(function(){
var $positiveButton = $(that).find('[value="POSITIVE"]');
$positiveButton.click();
var $inputField = $(that).find('[name="OVERALL_EXPERIENCE_COMMENT"]');
$inputField.get(0).scrollIntoView();
$inputField.val(comments[index%comments.length]).trigger("change");
var $submitButton = $(that).find('[id*="submitFeedbackBtn"]');
$submitButton.click();
}, index*250);
});
@bandrews568
Copy link

Works perfectly 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment