Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Windows 10 將小娜搜尋引擎從 Bing 改為 Google(或百度)完整教學

編輯:Windows 10 系統介紹

習慣用 Google 搜尋但小娜預設用 Bing?透過自製 Chrome 擴充功能,即可攔截小娜搜尋請求並重導向至 Google(或百度)。

製作步驟

  1. 桌面新建資料夾 CortanaUseGoogle。
  2. 資料夾內建立兩個文字檔,分別命名為 CortanaUseGoogle.js 與 manifest.json(含副檔名)。
  3. 用記事本編輯 CortanaUseGoogle.js 貼入攔截重導向程式碼(文中提供完整代碼)。
  4. 編輯 manifest.json 填入擴充功能資訊與權限(文中提供完整代碼)。
  5. 開啟 Chrome → 設定 → 擴充功能 → 勾選「開發人員模式」 → 「封裝擴充功能」選擇該資料夾 → 產生 .crx 檔 → 拖入 Chrome 視窗安裝。
  6. 將 Chrome 設為預設瀏覽器,測試小娜搜尋是否導向 Google。

改用百度或其他搜尋引擎

修改 JS 代碼中 https://www.google.com/search?q= 為 https://www.baidu.com/s?wd=,並移除 .replace("%20", "+") 即可。其他引擎請參考其搜尋網址結構自行調整。

這或許是你親手開發的第一個 Chrome 擴充功能!

Copyright © Windows教程網 All Rights Reserved