Viventor Agreements Script

Download agreements from Viventor

目前為 2022-11-11 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Viventor Agreements Script
// @namespace    http://tampermonkey.net/
// @version      0.1
// @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;
 var pages;
 var pag=0;
 comprueba();


function comprueba(){
 if ($(".fa-file-pdf-o").length) carga();
 else setTimeout(comprueba,1000);
}

function carga(){
    if (!pages) pages=$(".module-pagination--page")
    var arr= $(".fa-file-pdf-o");
    for (var i=0;i<arr.length;i++) $(arr[i]).click();
    if (pag++<pages.length) pages[pag].click();
    setTimeout(comprueba,2000);
}

})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址