Greasy Fork is available in English.

输入记录器

记录最近一次网页的所有输入

// ==UserScript==
// @name         输入记录器
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  记录最近一次网页的所有输入
// @author       kakasearch
// @match        http://*/*
// @match        https://*/*
// @grant        GM_getValue
// @grant        GM_setValue
// ==/UserScript==

(function() {
    'use strict';
 let inputs= document.getElementsByTagName('input')
 for(let input of inputs){
 input.onblur = ()=>{
     let str
      for(let input_ of inputs){
           str +=('--'+input_.value)
      }
      GM_setValue(window.location.href,str)
 }
 }
    // Your code here...
})();