GDocs form field focus

Places the cursor in the first text field on a Google Docs form. Useful if you use the form in combination with a barcode scanner for example.

  1. // ==UserScript==
  2. // @name GDocs form field focus
  3. // @description Places the cursor in the first text field on a Google Docs form. Useful if you use the form in combination with a barcode scanner for example.
  4. // @version 0.3
  5. // @match https://docs.google.com/*/viewform*
  6. // @namespace https://gf.qytechs.cn/users/5660
  7. // ==/UserScript==
  8.  
  9. setTimeout(() => document.querySelector("input[type=text]").focus(), 100);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址