您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Set the IssueDateFrom input to one year ago
// ==UserScript== // @name e-timologio | Invoice list set IssueDateFrom to One Year Ago // @namespace http://tampermonkey.net/ // @version 0.1 // @description Set the IssueDateFrom input to one year ago // @author Ratikal // @license MIT // @match https://mydata.aade.gr/timologio/invoice/listinvoices* // @grant none // ==/UserScript== (function() { 'use strict'; window.addEventListener('load', function() { setTimeout(function() { const issueDateFrom = document.getElementById('IssueDateFrom'); if (issueDateFrom) { const currentDate = new Date(); const month = String(currentDate.getMonth() + 1 - 2).padStart(2, '0'); const year = currentDate.getFullYear(); issueDateFrom.value = `01/${month}/${year}`; document.getElementById('mark').value = ""; document.getElementById('btnSearch').click(); } }, 50); }); })();