Last active
September 30, 2022 02:32
-
-
Save petrstepanov/8796c43caabce7c0ad06cefcba235dcc to your computer and use it in GitHub Desktop.
Ebay javascript. Leave feedback programmatically.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Works perfectly 👍