GithubHelp home page GithubHelp logo

jamznloh / chrome-open-in-spotify-client Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gaqzi/chrome-open-in-spotify-client

0.0 0.0 0.0 521 KB

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

Makefile 12.51% JavaScript 86.37% HTML 1.12%

chrome-open-in-spotify-client's Introduction

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 and then close the newly opened browser window.

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

Changes

1.4.1

1.4

  • Don't touch analytics/log links and legacy embed links. Thanks @claui for the PR.

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.

1.2

  • Opens links to user's playlists properly. Thanks for the bug report Robin H.

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.