Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

Cofacts & AI 雙核謠言查證 🕵️‍♂️

Chrome 擴充程式,結合 Cofacts 公開謠言資料庫與 Google Gemini AI, 一鍵查證當前網頁是否為假訊息。

功能

  • 🔍 Cofacts 查證:用網頁標題比對 Cofacts 公開資料庫,顯示志工查核結論。
  • 🤖 Gemini 智能點評:擷取網頁內容,請 Gemini AI 判斷是否含有謠言特徵並給出說明。

下載

到本專案的 GitHub 頁面,點擊 Code → Download ZIP,下載後解壓縮到本機任意資料夾。

git clone <你的 GitHub 倉庫網址>

安裝(載入到 Chrome)

  1. 開啟 Chrome,網址列輸入 chrome://extensions
  2. 右上角開啟「開發人員模式」
  3. 點擊「載入未封裝項目」
  4. 選擇你剛剛下載解壓縮後的專案資料夾
  5. 擴充程式列表中會出現「Cofacts and AI Anti-Fraud Detector」,點選圖示即可使用

設定 Gemini API 金鑰

本專案不會在程式碼中內建任何金鑰,需要你自己申請並填入本機設定檔:

  1. 前往 Google AI Studio 申請一個免費的 Gemini API 金鑰

  2. 複製專案內的 config.example.js,另存為 config.js(與 popup.js 同一層目錄)

  3. 打開 config.js,找到標註 <-- 釋放金鑰的地方 的那一行,把預設文字換成你剛申請的金鑰:

    const GEMINI_API_KEY = "在這裡貼上你的 Gemini API 金鑰"; // <-- 釋放金鑰的地方
  4. 存檔後回到 chrome://extensions,點擊擴充程式的「重新載入」即可生效

⚠️ config.js 已被 .gitignore 排除,不會被提交到 GitHub。請勿把含有真實金鑰的 config.js 上傳到任何公開倉庫;也不要把金鑰寫回 config.example.js 或其他原始碼檔案中。

專案結構

.
├── manifest.json        # Chrome 擴充程式設定
├── popup.html            # 彈出視窗畫面
├── popup.js              # 主要邏輯(讀取 config.js 取得金鑰)
├── config.example.js     # 金鑰設定範本(會提交到 GitHub)
├── config.js             # 你的本機金鑰設定(已 gitignore,不會提交)
└── images/                # 圖示資源

注意事項

  • 本擴充程式僅在本機使用 Gemini API,金鑰不會經由任何第三方伺服器轉發。
  • 若你不慎將含有真實金鑰的檔案提交到公開倉庫,請立即到 Google AI Studio 將該金鑰刪除或重新產生。

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages