您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Fix 💳 autofill on Uniteller.ru payments processing provider
// ==UserScript== // @name Uniteller: autocomplete fix // @namespace github.com/a2kolbasov // @version 1.1.0 // @description Fix 💳 autofill on Uniteller.ru payments processing provider // @name:ru Uniteller: фикс автозаполнения // @description:ru Исправляет автозаполнение 💳 на странице оплаты Uniteller.ru // @author Aleksandr Kolbasov // @license MIT // @icon https://uniteller.ru/local/templates/index/img/base/logo.svg // @match https://fpay.uniteller.ru/* // @grant none // ==/UserScript== /* * Copyright © 2023 Aleksandr Kolbasov * Licensed under the MIT license (https://opensource.org/license/mit/) */ (() => { 'use strict'; /** * @param {?HTMLElement} element * @param {string} value */ function setAutocomplete(element, value) { if (element) element.setAttribute('autocomplete', value); } setTimeout(() => { let cardNumber = document.getElementById('Pan'); let month = document.getElementById('ExpMonth'); let year = document.getElementById('ExpYear'); let name = document.getElementById('CardholderName'); let secureCode = document.getElementById('Cvc2'); let email = document.getElementById('Email'); let tel = document.getElementById('Phone'); setAutocomplete(cardNumber, 'cc-number'); setAutocomplete(month, 'cc-exp-month'); setAutocomplete(year, 'cc-exp-year'); setAutocomplete(name, 'cc-name'); setAutocomplete(secureCode, 'cc-csc'); setAutocomplete(email, 'email'); setAutocomplete(tel, 'tel'); }); })();