Last active
February 10, 2022 02:53
-
-
Save tan9/df262289574f8c1db32e5705b8cddabc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name 臺中市校園閱讀認證小幫手 | |
// @description 在「臺中市國民小學推動校園閱讀線上認證系統」將認證題目改用注音字型顯示、增加快捷鍵等,方便認證。 | |
// @version 0.2.1 | |
// @author Pei-Tang Huang | |
// @downloadURL https://gist.githubusercontent.com/tan9/df262289574f8c1db32e5705b8cddabc/raw/ | |
// @updateURL https://gist.githubusercontent.com/tan9/df262289574f8c1db32e5705b8cddabc/raw/ | |
// @match *://read.tc.edu.tw/* | |
// @require https://cdnjs.cloudflare.com/ajax/libs/mousetrap/1.6.3/mousetrap.min.js | |
// @require https://code.jquery.com/jquery-3.4.1.min.js | |
// ==/UserScript== | |
(function() { | |
"use strict"; | |
const $ = jQuery; | |
// 改用注音字體 | |
$("span") | |
.filter((i, e) => $(e).css("font-family") === "標楷體") | |
.css( | |
"font-family", | |
"華康標楷W5注音,文鼎標楷注音,王漢宗中楷體注音,標楷體" | |
); | |
// 為選項加上快捷鍵 | |
$('input[type="radio"][name="my_answer"]') | |
.before(i => `<kbd>${i + 1}</kbd>`) | |
.each((i, e) => | |
Mousetrap.bind(e.value, () => { | |
e.checked = true; | |
$('input[type="submit"]').click(); | |
}) | |
); | |
// 自動跳過跳到下一題 | |
if ($('input[value="下一題"')) { | |
setTimeout(() => $('input[value="下一題"').click(), 1500); | |
} | |
})(); |
63256
+
+65
654+5
66
@ljc0224 謝謝阿吉老師為孩子們做了那麼多,已經將你建議的部分更新了,其他家長應該會接到 Tampermonkey 的更新通知
👍😷👍
感謝您~
昨天我做了一份自行修改腳本檔的說明文件,還擔心家長無法處理,結果有家長回訊息告訴我他們成功了!真是太開心了!
https://read.tc.edu.tw/bulletin_view_2020.php?bulletin_view=410
謝謝您迅速的處理~感恩!
Pei-Tang Huang ***@***.***> 於 2021年10月15日 週五 上午8:47寫道:
… ***@***.**** commented on this gist.
------------------------------
@ljc0224 <https://github.com/ljc0224>
謝謝阿吉老師為孩子們做了那麼多,已經將你建議的部分更新了,其他家長應該會接到 Tampermonkey 的更新通知
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://gist.github.com/df262289574f8c1db32e5705b8cddabc#gistcomment-3927668>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWBVGTGK3ACTH4LIKB2S7FTUG523FANCNFSM4KZ2RUYA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
阿吉老師祝福您!
臺中市北屯區新興國民小學
新興國小公務電話:(04)2425-8514 #314
閱讀認證系統專線:(04)2426-0290
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ljc0224 阿吉老師好,
修改的歷程在這裡:
https://gist.github.com/tan9/df262289574f8c1db32e5705b8cddabc/revisions
最近都沒有異動,現在其他家長使用上會有什麼問題嗎?
您好~
在上頭「安裝及使用方法」
4.安裝本腳本檔: https://gist.github.com/tan9/df262289574f8c1db32e5705b8cddabc/raw/1bcb483513c5b619ec7e45925222d20bffcf208e/read.tc.user.js
所連結到的腳本檔寫著會「降級」
且內容中:
--- 當前版本
+++ 新版本
-// @match *://read.tc.edu.tw/*
+// @match *://read.tc.edu.tw/reading_certificate/*
看起來像是又改為原來的網址,我試著點選後,果然真的降級了……回到先前的網址,修正腳本檔中的@match才恢復正常顯示……所以才有這疑問。
@ljc0224 阿吉老師好,看起來是第 4 步的連結指到了某個特定的版本,已經改指到最新的版本囉。
謝謝您!:)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
安裝及使用方法