您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Make login/password boxes on selected sites compatible with Bitwarden auto-fill
当前为
- // ==UserScript==
- // @name Fix Bitwarden compatibility
- // @description Make login/password boxes on selected sites compatible with Bitwarden auto-fill
- // @author MK
- // @namespace max44
- // @homepage https://greasyfork.org/en/users/309172-max44
- // @match https://account.kyivstar.ua/cas/login*
- // @match https://next.privat24.ua/*
- // @match https://login-widget.privat24.ua/*
- // @match https://auth.lifecell.ua/*
- // @icon https://vault.bitwarden.com/images/favicon-32x32.png
- // @version 1.0.1
- // @license MIT
- // @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
- // @run-at document-idle
- // ==/UserScript==
- (function() {
- 'use strict';
- function universalAddIdUsername(input) {
- if (input.getAttribute("id") == null) {
- input.setAttribute("id", "username");
- }
- }
- function kyivstarAddIdPUK2(input) {
- if (input.getAttribute("id") == null) {
- if (window.location.href.indexOf("#puk2:") !== -1) {
- input.setAttribute("id", "puk2");
- }
- }
- }
- if (window.location.href.indexOf("https://account.kyivstar.ua/cas/login") == 0) {
- setInterval (function () {
- document.querySelectorAll("input[type='tel']").forEach(universalAddIdUsername);
- document.querySelectorAll("input[type='password']").forEach(kyivstarAddIdPUK2);
- }, 500);
- }
- if (window.location.href.indexOf("https://login-widget.privat24.ua/") == 0) {
- setInterval (function () {
- document.querySelectorAll("input[type='tel']").forEach(universalAddIdUsername);
- }, 500);
- }
- if (window.location.href.indexOf("https://auth.lifecell.ua/") == 0) {
- setInterval (function () {
- document.querySelectorAll("input[autocomplete='username'][inputmode='tel']").forEach(universalAddIdUsername);
- }, 500);
- }
- })();