Created
April 2, 2021 07:29
-
-
Save Arayn/284bd53da0f981dd8bc1f60c6ed8a64c to your computer and use it in GitHub Desktop.
Aliexpress feedback Prefill (updated to include j-anonymous-feedback)
This file contains hidden or 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
| // ==UserScript== | |
| // @name Aliexpress feedback | |
| // @namespace https://feedback.aliexpress.com/ | |
| // @version 1.1.0 | |
| // @description prefill 5-star rating in aliexpress feedback | |
| // @author luckylooke | |
| // @match https://feedback.aliexpress.com/management/leaveFeedback.htm* | |
| // @grant none | |
| // ==/UserScript== | |
| /* | |
| source: https://gist.github.com/luckylooke/e44bd8d44d51019d11c54c90cc94e09c | |
| Changelog: | |
| 1.1.0 Available to press 'enter' key for instant feedback submit | |
| 1.0.0 Prefill all 5-star | |
| */ | |
| (function () { | |
| 'use strict'; | |
| // setTimeout for page readiness | |
| setTimeout(function () { | |
| var all = document.getElementsByClassName('star star-5'); | |
| var l = all.length; | |
| for (var i = 0; i < l; i++) | |
| all[i].click(); | |
| document.getElementById('j-anonymous-feedback').click(); | |
| window.onkeypress = function (e) { | |
| if (e.keyCode == 13) { | |
| document.getElementById('buyerLeavefb-submit-btn').click(); | |
| } | |
| }; | |
| }, 300); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment