您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Ce script réduit le temps d'attente entre chaque téléchargement de documents dans un compte Crédit Agricole
// ==UserScript== // @name Crédit Agricole - Reduce download delay // @description Ce script réduit le temps d'attente entre chaque téléchargement de documents dans un compte Crédit Agricole // @version 2019.01.1 // @namespace Violentmonkey Scripts // @match https://www.credit-agricole.fr/ // @grant none // @run-at document-end // ==/UserScript== // // Own implementation of selectionLiens // The only change is the delaiEdoc value function selectionLiensGM (id){ var lien = document.getElementById(id).getAttribute("href"); if (lien !== null){ document.getElementById(id).removeAttribute("href"); document.getElementById(id).setAttribute("href_bak", lien); var srctab = document.getElementById(id).getElementsByTagName("span"); srctab[0].setAttribute("class_bak", srctab[0].getAttribute("class")); srctab[0].removeAttribute("class"); srctab[0].setAttribute("class","icon imgbam-ajax-loader"); srctab[0].setAttribute("title_bak", srctab[0].getAttribute("title")); srctab[0].removeAttribute("title"); srctab[0].setAttribute("title","Téléchargement en cours"); } var page = document.getElementById("e-doc"); var allAnchors = page.getElementsByTagName("a"); for (var i = 0; i < allAnchors.length; i++) { if (allAnchors[i].getAttribute("href") !== null && allAnchors[i].getAttribute("href").indexOf('ouvreTelechargement') != -1 && allAnchors[i].getAttribute("href_bak") === null) { allAnchors[i].setAttribute("href_bak", allAnchors[i].getAttribute("href")); allAnchors[i].removeAttribute("href"); } } var delaiEdoc = 1000; setTimeout("activerLiens()",delaiEdoc); } // Insert function in the document var script = document.createElement('script'); script.appendChild(document.createTextNode(selectionLiensGM)); (document.body || document.head || document.documentElement).appendChild(script); // Replace href function calls by our own var links = document.getElementsByTagName('a'); for(var i = 0; i < links.length; i++) { var href = links[i].getAttribute('href'); if (href === null) {continue;} href = href.replace('selectionLiens(', 'selectionLiensGM('); links[i].setAttribute('href', href); }