Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reminjp/mywaseda-script
User scripts for MyWaseda
https://github.com/reminjp/mywaseda-script
greasemonkey tampermonkey userscript
Last synced: 9 days ago
JSON representation
User scripts for MyWaseda
- Host: GitHub
- URL: https://github.com/reminjp/mywaseda-script
- Owner: reminjp
- License: mit
- Created: 2017-04-21T07:30:14.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-03-15T06:46:29.000Z (almost 3 years ago)
- Last Synced: 2024-11-30T19:34:53.087Z (2 months ago)
- Topics: greasemonkey, tampermonkey, userscript
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MyWaseda Script
[MyWaseda](https://my.waseda.jp/)用ユーザースクリプト。
GreasemonkeyやTampermonkeyの上で動作する.user.jsファイルです。特定のウェブページの特定の要素に対して処理を行うため、ページの仕様変更や更新によって動作しなくなる場合があります。
## Installation
1. ブラウザにユーザースクリプト実行アドオン(Greasemonkey, Tampermonkey)をインストールする。
2. ブラウザでスクリプトを開く。
3. アドオンにスクリプトをインストールするか尋ねられるのでインストールする。## Scripts
### MyWaseda Enter Login
[Install](https://github.com/rdrgn/mywaseda-script/raw/master/mywaseda-enter-login.user.js)
ログイン画面の`enter`キーを有効にするスクリプト。
ログイン画面のテキストボックス要素には`enter`によるsubmitを無効化する下記の関数がバインドされていたため、新たにsubmitに相当する処理を追加しています。```js
$('#j_username').keypress(function(e) {
if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) {
return false;
}
});$('#j_password').keypress(function(e) {
if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) {
return false;
}
});
```