Firefox 瀏覽器附加元件
  • 擴充套件
  • 佈景主題
    • 用於 Firefox
    • 字典與語言套件
    • 其他瀏覽器網站
    • Android 版的附加元件
登入
QSwitch 預覽

QSwitch 作者: Olillin

Switch between pages quick!

實驗中實驗中
0(0 筆評分)0(0 筆評分)
下載 Firefox 並安裝擴充套件
下載檔案

擴充套件後設資料

關於此擴充套件
QSwitch is a browser extension that makes it quick and snappy for you to switch between related websites using rules written in RegEx.

To configure rules, go to the Add-ons Page and find QSwitch. Then go to the Preferences tab.

Here you can add, edit and remove rules. Let's configure a rule to go from a YouTube video to the same song on YouTube music!

The Pattern is the RegEx pattern that will be matched against your current page URL when clicking the button. For our example we will set it to:

https://(?:www\.)?youtube\.com(.*)


This matches the full URL. Note the (.*) at the end, this is a capturing group which we will be able to get the value from later. Capturing groups are made by surrounding a part of your pattern with parenthesis (). However, there are
cases when we want to create a group without capturing the content, in these cases consider using a non-capturing group which open with (?:. Above we use a non-capturing group to match the optional www. prefix.

Reminder: In RegEx dots (.) is a wildcard that will match any character so be careful to escape them by typing \. if you want a literal dot.

The Template is used to create the new URL you will be redirected to. Here we will set it to:

https://music.youtube.com$1


Note that this is not a RegEx pattern so the dots do not need to be escaped.

This is mostly just a normal URL, except for the $1 at the end. This is a parameter which will be replaced with our capturing group from before.

You can have as many capturing groups and parameters as you want. Parameters are referenced by the order they appear in the pattern, starting at 1. $0 is a special parameter which will be replaced with the entire matched URL. Literal $ can be included in your template using by escaping them with backslash like \$.

Since RegEx can be difficult to read there is also a Comment field where you can provide a descriptive comment to quickly remember what a rule does.

Now you're ready to switch between pages! I would recommend pinning the extension to the toolbar so it's easily accessible. Then when you are on any website you can click on the extension icon to switch page. Your rules will be evaluated in order until a match is found. The rule will then be applied on the URL of the page you are currently on and you will be redirected to the new page.

Exporting/importing as JSON

The rules page also supports exporting and importing rules as JSON, which can be useful for copying your rules to another computer or sharing with friends. You can find these options by clicking the Import/export button on the rules page.
由 1 位評論者給出 0 分
登入後即可幫此擴充套件評分
目前沒有評分

已儲存星等

5
0
4
0
3
0
2
0
1
0
還沒有評論
權限與資料

必要權限:

  • 存取瀏覽器分頁

收集下列資料:

  • 開發者聲稱此擴充套件不要求收集任何資料。
了解更多
更多資訊
附加元件網址
  • 首頁
  • 技術支援信箱
版本
1.1
大小
34.97 KB
最近更新
4 天前 (2026年1月11日)
相關分類
  • 分頁
授權條款
MIT License
版本紀錄
  • 瀏覽所有版本
標籤
  • user scripts
新增至收藏集
檢舉此附加元件
前往 Mozilla 官網

附加元件

  • 關於
  • Firefox 附加元件部落格
  • 擴充套件工作坊
  • 開發者交流中心
  • 開發者政策
  • 社群部落格
  • 討論區
  • 回報 Bug
  • 評論撰寫指南

瀏覽器

  • Desktop
  • Mobile
  • Enterprise

產品

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • 隱私權
  • Cookie
  • 法律資訊

除另有註明外,本站內容皆採用創用 CC 姓名標示—相同方式分享條款 3.0 或更新版本授權大眾使用。