Greasy Fork is available in English.

Taobao one key good reputation

Taobao one click to good reputation all

Från och med 2015-12-10. Se den senaste versionen.

// ==UserScript==
// @name        Taobao one key good reputation
// @name:zh-CN  淘宝一键好评
// @name:zh-TW  淘寶一鍵好評
// @description Taobao one click to good reputation all
// @description:zh-CN 淘宝评价页面添加一键好评按钮
// @description:zh-TW 淘寶評價頁面添加一鍵好評按鈕
// @author      JoJunIori
// @version     1.0.0.1
// @grant       unsafeWindow
// @include     https://rate.taobao.com/*
// @namespace   https://rate.taobao.com/*
// ==/UserScript==
'use strict';

var newDir = document.createElement('button');
var parentElem = document.querySelector('.submitbox');
var goodRate = document.querySelectorAll('.good-rate');
newDir.innerHTML = '一键好评';
newDir.className = 'tb-rate-btn type-primary tb-rate-btn';
newDir.style.marginLeft = "50px";
newDir.onclick = function() {
  for (var i = 0, a; a = goodRate[i++];) {
    a.click();
  }
  document.querySelectorAll('.ks-simplestar img')[4].click();
  document.querySelectorAll('.ks-simplestar img')[9].click();
  document.querySelectorAll('.ks-simplestar img')[14].click();
  // document.querySelector('.J_submit_rate').click();
};
if (parentElem) {
  parentElem.appendChild(newDir);
}