NativeScript

LoremLoremLorem.

Stan na 01-03-2019. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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
*/