Open in Spotify desktop client

Instead of opening open.spotify.com links in the browser they will always be opened in Spotify

什麼是Open in Spotify desktop client?

Open in Spotify desktop client是由gaqzi開發的Chrome擴展程式,該擴展的主要功能是“Instead of opening open.spotify.com links in the browser they will always be opened in Spotify”。

擴展截圖

screenshot

下載Open in Spotify desktop client擴展crx文件

下載Open in Spotify desktop client擴展crx格式的文件,手動將Chrome擴充功能安裝到瀏覽器中,也可以將crx文件分享給朋友,輕鬆安裝Chrome擴充功能。

擴展使用說明

                        Open Spotify link in client
===========================

This is a small simple extension that tries to open any
open.spotify.com or play.spotify.com url in the Spotify desktop client
instead of playing it using the Spotify web player. After opening
the desktop client it tries to close the newly opened browser window.

# How

The way the extension works is:

1. If the URL visited is open.spotify.com or play.spotify.com then
2. Don't do anything if the URL contains any of the following, else
   - `/embed/`: Embedded playlists
   - `/embed?`: Legacy embed playlist format
   - `/log/`: Requests to Spotify's analytics
3. Remove the protocol and domain part together with the first slash and
4. Replace those with `spotify:` and
5. Replace the remaining slashes (`/`) with colons (`:`) and
6. Redirect to that URL and
7. Close the tab that opened the URL if it was a newly opened tab

Available in the [Google Chrome web store][store-url]

# Changes
## 1.4.1
* Purely a technical implementation release, switched from using webpack,
  in the unreleased 1.4, to relying on [native ES6 modules in the extension.][es6-modules-extension]

[es6-modules-extension]: https://medium.com/front-end-weekly/es6-modules-in-chrome-extensions-an-introduction-313b3fce955b

## 1.4
* Don't touch analytics/log links and legacy embed links. 
  Thanks [@claui] for the PR.

[@claui]: https://github.com/claui 

## 1.3
* Don't touch embedded links, so that websites that embed a playlist
  can do so without having Spotify trying to open the link automatically.
  Thanks [@shape55] for reporting the issue.

[@shape55]: https://github.com/shape55
## 1.2
* Opens links to user's playlists properly. Thanks for the bug report Robin H.

[store-url]: https://chrome.google.com/webstore/detail/open-in-spotify-client/okkdbmdhpgmajopdpmflkldkemcldnjd                    

擴展基本資訊

名稱 Open in Spotify desktop client Open in Spotify desktop client
ID okkdbmdhpgmajopdpmflkldkemcldnjd
官方網址 https://chromewebstore.google.com/detail/open-in-spotify-desktop-c/okkdbmdhpgmajopdpmflkldkemcldnjd
簡介 Instead of opening open.spotify.com links in the browser they will always be opened in Spotify
檔案大小 4.4 KB
安裝次數 3,136
目前版本 1.4.1
更新時間 2022-06-06
上架時間 2018-06-06
評分 3.81/5 共 37 次評分
開發者 gaqzi
電子郵箱 [email protected]
付費類型 free
擴展官網 https://github.com/gaqzi/chrome-open-in-spotify-client
說明頁面URL https://github.com/gaqzi/chrome-open-in-spotify-client
支援的語言 en
manifest.json
{
    "update_url": "https:\/\/clients2.google.com\/service\/update2\/crx",
    "manifest_version": 2,
    "name": "Open in Spotify desktop client",
    "description": "Instead of opening open.spotify.com links in the browser they will always be opened in Spotify",
    "version": "1.4.1",
    "permissions": [
        "tabs",
        "webRequest",
        "webRequestBlocking",
        "*:\/\/open.spotify.com\/",
        "*:\/\/play.spotify.com\/"
    ],
    "background": {
        "page": "chrome-background.html"
    }
}