Greasy Fork 还支持 简体中文。

OUTIcomplete

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

目前為 2018-02-09 提交的版本,檢視 最新版本

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