您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
徳島大学の統合認証システムに自動でログインすることができるスクリプトです。このスクリプトはパスワードを平文で保存します。使用環境のセキュリティには十分に注意してください。
// ==UserScript== // @name 徳島大学 統合認証システム 自動ログインスクリプト // @version 1.1.5 // @license MIT License // @description 徳島大学の統合認証システムに自動でログインすることができるスクリプトです。このスクリプトはパスワードを平文で保存します。使用環境のセキュリティには十分に注意してください。 // @match https://localidp.ait230.tokushima-u.ac.jp/* // @match https://gidp.ait230.tokushima-u.ac.jp/* // @match https://eweb.stud.tokushima-u.ac.jp/Portal/RichTimeOut.aspx // @match https://eweb.stud.tokushima-u.ac.jp/Portal/Login.aspx // @match https://eweb.stud.tokushima-u.ac.jp/Portal/ErrorPage.aspx* // @namespace https://greasyfork.org/users/1256941 // ==/UserScript== /* このスクリプトはパスワードを平文で保存します。使用環境のセキュリティには十分に注意してください。 */ window.addEventListener('DOMContentLoaded', function() { const username = ""; /* このコメントの前のダブルクォーテーション(")の間にcアカウントを入力してください。 */ const password = ""; /* このコメントの前のダブルクォーテーション(")の間にパスワードを入力してください。 */ if (location.href == "https://eweb.stud.tokushima-u.ac.jp/Portal/RichTimeOut.aspx" || location.href == "https://eweb.stud.tokushima-u.ac.jp/Portal/Login.aspx" || location.href.indexOf("https://eweb.stud.tokushima-u.ac.jp/Portal/ErrorPage.aspx") > -1) { location.href = "https://eweb.stud.tokushima-u.ac.jp/"; } else { if (username != "" && password != "") { const elemInputboxUsername = document.getElementById('username'); const elemInputboxPassword = document.getElementById('password'); const elemButtonLogin = document.querySelector('button[name="_eventId_proceed"]'); elemInputboxUsername.value = username; elemInputboxPassword.value = password; elemButtonLogin.click(); } } })