OUTIcomplete

Enables library card number auto-completion in OUTI Koha and Finna library logins.

目前为 2018-02-09 提交的版本。查看 最新版本

// ==UserScript==
// @name        OUTIcomplete
// @namespace   raina
// @description Enables library card number auto-completion in OUTI Koha and Finna library logins.
// @include     /^https:\/\/koha\.outikirjastot\.fi\//
// @include     /^https:\/\/[\w]+\.finna\.fi\//
// @version     2
// @grant       none
// ==/UserScript==
// jshint esversion: 6
if (window.top === window.self) {
	document.body.addEventListener("focus", ev => {
		if (ev.target.hasOwnProperty("name") && ev.target.name.match(/^user/)) {
			ev.target.removeAttribute("autocomplete");
		}
	}, true);
}