NativeScript

LoremLoremLorem.

Versione datata 01/03/2019. Vedi la nuova versione l'ultima versione.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==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 *1l')
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(1, 2);
//auto(1.5, 2.5);

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