Skip to content

Instantly share code, notes, and snippets.

@tan9
Last active October 2, 2025 05:35
Show Gist options
  • Select an option

  • Save tan9/41686eab8e704bb18885a24339010d65 to your computer and use it in GitHub Desktop.

Select an option

Save tan9/41686eab8e704bb18885a24339010d65 to your computer and use it in GitHub Desktop.
CHT e-Learning Assistant
// ==UserScript==
// @name CHT e-Learning Assistant [已下架]
// @source [已移除]
// @version 0.0.0
// @description 【此腳本已於 2025-09-25 下架】基於公司資安政策要求停止維護
// @author [已移除]
// @downloadURL none
// @updateURL none
// @match https://plearn.elearning.cht.com.tw/mod/quiz/*
// @match https://ilearn.elearning.cht.com.tw/mod/quiz/*
// @icon https://web-eshop.cdn.hinet.net/eshop/img/favicon.ico
// @grant none
// ==/UserScript==
(function () {
'use strict';
// ========================================
// 【重要通知】此 UserScript 已下架
// ========================================
//
// 下架日期:2025-09-25
// 原因:基於公司資安政策要求
//
// 詳細說明:
// - 資安處定期掃描 GitHub 公開資料
// - 發現包含公司系統相關資訊將影響機構資安 KPI
// - 此腳本已停止維護並移除所有功能
//
// 注意事項:
// - 請勿在 GitHub 或其他公開平台分享
// - 原始程式碼已移除
// - 如有相關需求請聯繫內部 IT 支援
//
// ========================================
console.warn('CHT e-Learning Assistant 已下架 - 基於資安政策要求');
// 在頁面顯示下架通知
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', showNotice);
} else {
showNotice();
}
function showNotice() {
const notice = document.createElement('div');
notice.style.cssText = 'position:fixed;top:10px;right:10px;background:#ff4444;color:white;padding:10px;border-radius:5px;z-index:9999;font-size:14px;';
notice.textContent = 'e-Learning Assistant 已停用(資安政策)';
document.body.appendChild(notice);
setTimeout(() => notice.remove(), 5000);
}
})();
@Ray941216
Copy link

2024-06-03 測試,已失效
不會像之前一樣顯現提示了,另外自動更新的網址可能要在 /raw 後面補上『ezlearning.user.js』,才能發動自動更新

@tan9
Copy link
Author

tan9 commented Jun 4, 2024

@Ray941216 謝謝提醒,低調更新 😜

@Ray941216
Copy link

@Ray941216 謝謝提醒,低調更新 😜

關於自動更新的那個網址,應該改成『https://gist.github.com/tan9/41686eab8e704bb18885a24339010d65/raw/ezlearning.user.js』不指定 commit 才會是最新版(由於 github 有 cdn 快取,所以可能頻繁測試會無法發動成功)

@tan9
Copy link
Author

tan9 commented Jun 4, 2024

關於自動更新的那個網址,應該改成『https://gist.github.com/tan9/41686eab8e704bb18885a24339010d65/raw/ezlearning.user.js』不指定 commit 才會是最新版(由於 github 有 cdn 快取,所以可能頻繁測試會無法發動成功)

網址更新囉,謝謝

@sunnycsc
Copy link

已更新自動更新網址,2025/03/17測試沒有出現提示

@likueimo
Copy link

使用 firefox or edge 都可以正常使用,但 chrome 會失敗,以上回報

@tan9
Copy link
Author

tan9 commented Apr 14, 2025

@sunnycsc @likueimo 請問你們有依照 https://www.tampermonkey.net/faq.php?locale=en#Q209 的說明啟用 "Developer Mode" 嗎?

@sunnycsc
Copy link

啟用Developer Mode測試成功,謝謝

@nickhsieh04
Copy link

原以為失效 查看了一下發現有設定沒打開低調服用低調推!!

@conansherlock-svg
Copy link

低調感恩,低調推

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment