NativeScript

LoremLoremLorem.

Verze ze dne 01. 03. 2019. Zobrazit nejnovější verzi.

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

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