Giter Club home page Giter Club logo

tampermonkeyuserscripts's Introduction

TampermonkeyUserscripts

這裡整理了 Will 保哥 多年來撰寫的 Tampermonkey 使用者腳本 (Userscript),我只要覺得常用的網站做的有點難用,就會自己寫寫小工具來改善特定網站的 UI/UX 問題,提升平時的工作效率。

本頁短網址: tm.miniasp.com

使用方式

  1. 先依據不同瀏覽器安裝好 Tampermonkey 擴充套件!

    Chrome Edge
    Google Chrome Microsoft Edge
    Firefox Safari
    Mozilla Firefox Apple Safari
  2. 點擊以下 使用者腳本 (Userscript)安裝圖示即可啟動 Tampermonkey 擴充套件頁面,按下 Install 即可自動安裝完畢!

    Tampermonkey Userscript installation

使用者腳本 (Userscript)

安裝 腳本名稱 用途簡介
Gemini: 翻譯選取文字的內容 (中翻英) 自動將當前頁面的選取範圍送到 Gemini 進行翻譯 (中翻英)
Gemini: 翻譯選取文字的內容 (英翻中) 自動將當前頁面的選取範圍送到 Gemini 進行翻譯 (英翻中)
Gemini: 總結選取文字的內容 自動將當前頁面的選取範圍送到 Gemini 進行總結
將網頁內容轉成 Markdown 格式並寫入剪貼簿 在網頁選取文字範圍後,使用者按下滑鼠右鍵,就可以將選取範圍的 HTML 轉成 Markdown 格式並寫入剪貼簿
Google AI Studio Light Theme 強迫讓 Google AI Studio 使用淺色主題,方便簡報時使用
GitHub: 佈景主題切換器 按下 alt+s 快速鍵就會自動切換目前網頁的 Dark/Light 模式,網頁右上角 Actions 按鈕列也會多一顆切換按鈕
SinoBank: 永豐銀行 MMA 登入啟用密碼管理器機制 永豐銀行 MMA 金融交易網登入時可以讓現有的密碼管理器正常運作,如 LastPass, 1Password, Dashlane, Bitwarden, etc.
ChatGPT: 滑鼠雙擊編輯提示文字 滑鼠雙擊先前已經輸入的提示就可直接編輯
ChatGPT: 開啟常用參考連結 開啟常用的 ChatGPT 參考連結
ChatGPT: 翻譯選取文字的內容 (中翻英) 自動將當前頁面的選取範圍送到 ChatGPT 進行翻譯 (中翻英)
ChatGPT: 翻譯選取文字的內容 (英翻中) 自動將當前頁面的選取範圍送到 ChatGPT 進行翻譯 (英翻中)
ChatGPT: 在回應結果的地方加入常見提示回應按鈕 點擊按鈕就會自動填入 ChatGPT 提示文字輸入框並自動送出提問
ChatGPT: 自動統計網頁中選取的文字範圍的 Token 數量 自動統計網頁中選取的文字範圍的 Token 數量 使用 (OpenAI GPT-3 的 Tokenizer 規則)
ChatGPT: 自動總結網頁中的文章內容 (<article>) 自動將當前頁面的選取範圍或預設文章內容送到 ChatGPT 進行總結 (頁面中第一個 <article> 標籤)
ChatGPT: 自動填入提示文字並自動送出 自動填入 ChatGPT 提示文字並可設定自動送出提問
ChatGPT: 語音輸入與語音合成功能 (支援中/英/日/韓語言) 讓你可以透過語音輸入要問 ChatGPT 的問題並支援語音合成功能 (支援中文、英文、日文、韓文)
支援功能:
  1. 支援語音識別輸入功能並在輸入框右邊增加麥克風圖示
    可以在麥克風圖示上按滑鼠右鍵選擇不同地區的語言進行語音辨識(中/英/日/韓)
  2. 支援語音合成朗讀功能並在輸入框右邊增加喇叭圖示
    可以在喇叭圖示上按滑鼠右鍵選擇不同國家的聲音來源
    可以將 ChatGPT 的回應自動透過瀏覽器播放成語音輸出
    當每一個段落完成回應時,就會開始朗讀文字內容,支援中文與英文
  3. 按下 alt+s 可啟動/停止語音辨識 (Mac: command+option+s)
  4. 按下 alt+m 可啟動/停止朗讀功能 (Mac: command+option+m)
  5. 按下 alt+t 可立即停止語音辨識與語音合成功能 (Mac: command+option+t)
  6. 按下 alt+r 可重設語音辨識狀態 (Mac: command+option+r)
  7. 按下 Escape 可重設語音辨識狀態
  8. 影片教學: Part 1 (Outdated), Part 2 (Outdated)
  9. 支援多種語音命令:
    1. 送出: 可自動送出查詢
    2. 清除: 可清除輸入框中的文字
    3. 刪除: 可刪除最近一次的語音輸入
    4. 換行: 可插入換行字元
    5. 重置: 可重置語言狀態、語音輸入內容等
    6. 貼上: 可自動貼上「剪貼簿」內容到提問輸入框
    7. 解釋以下程式碼: 可自動貼上「剪貼簿」內容到提問輸入框
    8. 重新整理: 可重新整理網頁
    9. 切換至英文模式: 可切換至使用英文進行語音辨識
    10. 切換至日文模式: 可切換至使用日文進行語音辨識
    11. 切換至韓文模式: 可切換至使用韓文進行語音辨識
    12. 切換至中文模式: 可按下 Escape 或 Alt+R 回覆預設中文模式
    13. 關閉語音辨識: 可關閉語音辨識功能
網站追蹤碼移除工具 移除大多數網站附加在超連結上的 Query String 追蹤碼
中、英文網頁切換器 按下 alt+s 快速鍵就會自動將目前網頁切換至中文版英文版
防止避免意外關閉頁籤 避免特定網站會被意外使用 ctrl-w 關閉頁籤
Azure DevOps: 調整 Wiki 文件的 TOC 標題寬度 讓 Azure Wikis 的 TOC 標題可以完整顯示
Azure Portal: 移除所有會出現 ... 的樣式 移除在 Azure Portal 之中所有會出現 ... 的樣式,尤其是看帳單的時候不要顯示有 ... 的數字
Azure DevOps: 優化快速鍵操作 讓 Azure DevOps Services 的快速鍵操作貼近 Visual Studio Code 與 Vim 操作

特色

  • 可快速切換側邊欄顯示或隱藏
  • 在 Wikis 頁面增加 vim 風格的光棒移動,可用 j, k 移動左側光棒並按下 Enter 開啟頁面

全站快速鍵

  1. Alt+1~3: 切換頁籤
  2. j: 任何列表項目向下移動選取項目 (按下 Enter 可進入)
  3. k: 任何列表項目向上移動選取項目 (按下 Enter 可進入)

首頁快速鍵

  1. 1 ~ 4: 快速進入首頁的前三張卡片
  2. j: 向下移動專案清單項目 (按下 Enter 可進入)
  3. k: 向上移動專案清單項目 (按下 Enter 可進入)
  4. h: 向左移動選取專案清單的左右連結 (按下 Enter 可進入)
  5. l: 向右左移動選取專案清單的左右連結 (按下 Enter 可進入)
  6. f: 移動游標至 Filter projects (按下 Escape 可離開)
  7. s: 移動游標至 Search (搜尋整個組織) (按下 Escape 可離開)

專案所有頁面快速鍵

  1. Ctrl+B: 切換側邊欄顯示/隱藏
  2. go: 快速跳轉到 Overview > Summary 頁面
  3. gw: 快速跳轉到 Overview > Wiki 頁面
  4. gd: 快速跳轉到 Overview > Dashboards 頁面
  5. gl: 快速跳轉到 Boards > Backlogs 頁面
  6. gs: 快速跳轉到 Boards > Sprints 頁面
  7. gb: 快速跳轉到 Pipelines > Builds 頁面
  8. gr: 快速跳轉到 Pipelines > Releases 頁面

Overview > Wiki 快速鍵

  1. j: 向下移動左側選取項目 (按下 Enter 可進入)
  2. k: 向上移動左側選取項目 (按下 Enter 可進入)
  3. f: 移動游標至 Filter pages by title 欄位 (按下 Enter 可回到 j, k 移動模式) (按下 Escape 可離開)
  4. Space: 向下捲動 Wiki 文章
  5. Shift+Space: 向上捲動 Wiki 文章

Repos > Pull requests 快速鍵

  1. c: 當有出現 Create a pull request 按鈕時,按下 c 就會自動點擊該按鈕
Azure DevOps: 啟用鍵盤快速鍵 讓 Azure DevOps Service 的鍵盤快速鍵一直都可以使用
Azure DevOps: 調整工作項目頁面標題 讓 Azure Boards 的 Work Item 顯示的「頁面標題」更加具有意義
Azure DevOps: 調整 Pipeline Log 的顯示寬度 在 Azure Pipelines 的 Logs 可透過鍵盤(+/-)放大/縮小左欄寬度
Azure DevOps: 調整工作項目直接播放螢幕錄影影片 將 Azure Boards 的 Work Item 可直接播放 Screen recording 影片
Facebook: FixWarnLink 讓 Facebook 點擊「外部連結」時可以不用去點擊確認按鈕
Facebook: PunycodeConverter 將 Facebook 貼文上所有 Punycode 轉為正常的 Unicode 文字
Facebook: 移除「商店」按鈕 移除 FB 畫面上方的「商店」頁籤(上面全部都是色情廣告)
Microsoft Forms: 調整回應頁面顯示較寬的選項內容 按下 + 號就可以調寬,按下 - 號就可以調窄。
Power Automate: 調整顯示名稱的欄位寬度 將 Flows 的 Name 欄位調整到 750px 寬度,讓標題可以完整顯示在畫面上
MVP: Microsoft Docs & Learn Champion Program Add WT.mc_id=DT-MVP-4015686 tracking code to the matched urls
NYTimes: 移除 New York Times 閱讀新聞時的付款提示畫面 移除看 New York Times 新聞時的付款提示畫面
Accupass: 刪除活動頁面的漂浮廣告 刪除 Accupass 前台活動頁的漂浮廣告
博客來: 刪除首頁的蓋版廣告 刪除博客來首頁的蓋版廣告
玉山銀行: 添加遺失的表單欄位 id 屬性 修復玉山銀行玉山全球智匯網登入頁面無法使用密碼管理器的問題

相關連結

tampermonkeyuserscripts's People

Contributors

doggy8088 avatar neillee-udndigital avatar wellwind avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tampermonkeyuserscripts's Issues

中、英文網頁切換器:Alt+S 快捷鍵在 Mac 會失效

在 Mac 按下 Alt+S 組合鍵,KeyboardEvent 物件中的 key 屬性會變成 "ß",所以跟 "s" 比對會變 false,不會成功觸發中英文網頁切換。建議改用 ev.altKey && ev.code === "keyS" 來辨識 Alt+S 組合鍵,如此才能適用於 Windows 和 macOS 平台。

{
  altKey: true,
  code: "KeyS",
  composed: true,
  ctrlKey: false,
  key: "ß",
  keyCode: 83,
  metaKey: false,
  shiftKey: false,
  // 省略其他屬性
}

GA4 的跨網域追蹤

Hello,

_ga 這個 query 有辦法過濾掉嗎?(Is there a way to filter out the query of "_ga"?)

thank you

English version and improvement

Hi,

I am working on fixing some of the issues and making this support more languages, and I would like to ask you some questions, I am not a Dev myself but I always manage to do things by tinkering, still I want to get better and make this extension with your help and of ChatGPT of course into something that many people around the globe would use...

I have already fixed some of the issues myself but I still have a lot to understand and lear, so I would like if you kindly tell me if you can assist me in some way or another... when I am stuck.


Translated by Gemini:

嗨!我正在努力修復一些問題,讓這個功能支援更多語言。為了做得更好,我想請教你一些問題。雖然我不是開發人員,但我常常自己動手嘗試解決問題。希望藉由你的協助,以及當然還有 ChatGPT 的幫忙,能將這個擴充功能打造成全球各地的人都愛用的東西。

我自己已經修復了一些問題,不過仍有很多需要學習的地方。所以,如果我遇到卡關的時候,不知道你能不能幫幫我呢?

chatGPT回答朗读

老哥,非常好用,但是如何朗读chatGpt的回答呢? 我尝试使用querySelectorAll查询所有P标签,将内容合并以后用SpeechSynthesis的speak来语音朗读chatGpt文本内容,但是失败了,UP有更好的办法没有,是否可以实现一下

建议改进功能

说明

我是在B站看你这个插件视频的、我体验了还不错、不过这个语音输入它识别的字体显示是繁体、这就不友好、

建议

  1. 语音输入它识别的显示字体是繁体、建议修改成简体中文
  2. 文字朗读、建议使用微软语音朗读、例如: 微软小娜、微软语言朗读更加自然

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.