您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
A scipt for auto login, designed for use with lastpass.
// ==UserScript== // @name CanvasLogin // @namespace http://tampermonkey.net/ // @version 1.0 // @description A scipt for auto login, designed for use with lastpass. // @author H3rl // @license MIT // @match https://idp.feide.no/* // ==/UserScript== var credentialsInterval; function pressCredentials(){ try{ var loginbtn = document.querySelector("button[type='submit']"); //for(var userbtn of loginbtns) if(document.readyState == "complete" && document.getElementById("username").value != "") { clearInterval(credentialsInterval); loginbtn.click(); } }catch(e){ console.log(e); } } window.onload = function(){ credentialsInterval = setInterval(pressCredentials,100); }