Viventor Agreements Script

Download agreements from Viventor

Tính đến 12-11-2022. Xem phiên bản mới nhất.

// ==UserScript==
// @name         Viventor Agreements Script
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  Download agreements from Viventor
// @author       @Juanvi78
// @match        https://www.viventor.com/profile/investments/myInvestments
// @grant        none
// @require      https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
// @license MIT
// ==/UserScript==

(function() {
'use strict';
 var $ = window.jQuery, pag=0;
 dwnl();
 function dwnl(){
     if ($(".fa-file-pdf-o").length) {
         $(".fa-file-pdf-o").click();
         var pages=$(".module-pagination--page");
         if (++pag<pages.last().text()) {
             pages[pag].click();
             setTimeout(dwnl,10000);
         }
     } else setTimeout(dwnl,1000);
 }
})();