NativeScript

LoremLoremLorem.

当前为 2019-03-01 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         NativeScript
// @author       Lp
// @version      0.0.4
// @description  LoremLoremLorem.
// @license      MIT License.
// @namespace https://greasyfork.org/users/164367
// ==/UserScript==
//***********************************

/**
 * Getnative jQuery Auto Add Translation
 * @param {number} addInterval Add Translation button click interval in seconds
 * @param {number} nextInterval Next button click interval in seconds
 * @param {number} newTranslateInterval Machine Translation button click interval in seconds
 */

var addInterval = prompt('Masukkan jeda interva *1')
var newTranslateInterval = prompt('Masukkan jeda translate baru *2')

let no = parseInt(($($('.project-source-text')[0]).attr('id')).replace('ember', ''));
// get numberId in source text
// change ember1802 => 1802
function auto(addInterval, newTranslateInterval) {
    setTimeout(function() {
         $('#ember' + no).click();
         //click ember id
         no++
         //loop
         auto(addInterval, newTranslateInterval);
    }, newTranslateInterval * 1000);  
     
    $('.translate-mode-icon').click();
     // click translate 

    setTimeout(function() {
        $('.right button').click();
    }, addInterval * 1000);    

};
//save, next, 
auto();
//auto(1.5, 2.5);

/*  fitur
*   save translate > 80%    getAttribute
*   stop code   debuger
*/