Aliexpress feedback

prefill 5-star rating in aliexpress feedback

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Aliexpress feedback
// @namespace    https://feedback.aliexpress.com/
// @version      2.0.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:
    2.0.0 'enter' feature from 1.1.o replaced by confirm popup
    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();
    
        if (l > 0 && window.confirm("Do you want to submit 5-star feedback?")) { 
            document.getElementById('buyerLeavefb-submit-btn').click();
        }
    
    }, 300);
})();