NativeScropt

LoremLoremLorem.

当前为 2018-05-26 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name NativeScropt
  3. // @author Lp
  4. // @version 0.0.1
  5. // @description LoremLoremLorem.
  6. // @license MIT License.
  7. // @namespace https://greasyfork.org/users/164367
  8. // ==/UserScript==
  9. //***********************************
  10. function auto(addInterval, nextInterval, newTranslateInterval) {
  11. // click translate
  12. $('.translate-mode-icon').click();
  13.  
  14. setTimeout(function() {
  15. $('.right button').click();
  16. }, addInterval * 1000);
  17.  
  18. setTimeout(function() {
  19. $('.next-sentence-translate-view').click();
  20. }, nextInterval * 1000);
  21.  
  22. setTimeout(function() {
  23. auto(addInterval, nextInterval, newTranslateInterval);
  24. }, newTranslateInterval * 1000);
  25. };
  26.  
  27. auto(2, 2.5, 3);