Code Monkey home page Code Monkey logo

lyrics-status's Introduction

Lyrics Status

What does it do?

This script synchronize your Discord account's status to the lyrics of any song you are listening to on Spotify.

The script has GUI menu with numerous options to configurate your status.

Work preview

Warning!

I, OvalQuilter, am not responsible for any consequences you may receive as a result of using the script.

This script is provided 'as is'. USE AT YOUR OWN RISK.

How to set it up

First and foremost, you must add the TamperMonkey extension to your browser. You can find it here.
Video tutorial showing how to get your Discord token.

Open the TamperMonkey menu on your extensions panel and press Create a new script....

Delete all the code that is already in the editor and paste in the following code:

// ==UserScript==
// @name         Lyrics Status V2.1.2
// @namespace    -
// @version      -
// @description  Synchronizes your Discord status with the lyrics of any song you are listening to on Spotify!
// @author       OvalQuilter
// @match        *://open.spotify.com/*
// @icon         https://raw.githubusercontent.com/OvalQuilter/lyrics-status/main/Logo.png
// @grant        none
// @require      https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js
// ==/UserScript==

$.get("https://raw.githubusercontent.com/OvalQuilter/lyrics-status/main/LyricsStatus.js", (d) => eval(d));

Then click on the File dropdown in the top left, and press Save.

Now open the Spotify website, press the Esc key on your keyboard, go to the Settings tab, paste your Discord token in the Token field, then go to the Run tab, and finally click the Start button. Enjoy!

Note: Slow connection speed may cause issues.

Errors

Some errors that may occur while using Lyrics Status and potential fixes

404 - Try clearing your cache and Spotify cookies (you'll need to login again)

502 - Wait a couple minutes or reload the webpage. It may be a problem with Spotify as opposed to the script.

lyrics-status's People

Contributors

ovalquilter avatar twelve0001 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

Watchers

 avatar  avatar  avatar

lyrics-status's Issues

eslint error

On Tampermonkey v5.0.1 (Chrome) it reported 2 errors of eslint on Line 13
eslint: no-undef - "$" is not defined.
eslint: no-eval - eval can be harmful.

image

Due to these errors the script cannot be enabled and thus no lyrics are shown on Discord status.

Error code: 502

I've been getting error code 502 randomly and have to turn it on manually every time it happens. Do anyone know why?

emojis

anyway to keep an emoji with the status running?

Executable of some sort for desktop apps

Would it be possible to make a version for the desktop apps? I find that even going to a different tab in my browser basically negates the functionality of lyrics-status, making it a slightly annoying issue to use any other app/tab. Would be nice to have a plugin or something similar to get better results when generally using your computer

customizable status format

add a text box where you can set a specific format for how the lyrics are displayed on your status

example: "๐ŸŽถ {timestamp} {songname} - {lyrics}๐ŸŽถ"

some extra tags you could add: {timestampnobrackets}, {songname}, {lyricslowercase}, {lyricsuppercase}, {songnameuppercase}, {songnamelowercase}, {songartist}, {songartistlowercase}, {songartistuppercase}

Possibility to make an executable program.

Hi, I wanted to know if it's possible to create an executable out of this. Because when we minimize the browser, the synchronization between Tampermonkey and Discord becomes slow, taking a long time to update the lyrics. And we have to keep the browser open as the primary screen.
image
image

Doesn't work as of the latest update 2.1.1

I don't know what else to say. All the buttons work, the debug tab shows the lyrics, there's no signs of it being broken in the console (I think), it just doesn't send to my Discord profile.

But, some of the console log anyway.
chrome_BgKtbV3Qpl

Idea: {song_genre} variable

Since Spotify is able to sort songs by Genre and Mood, it'd be cool to be able to display that in the custom status. If a song has multiple genres, you'd probably want to display just 1 primary genre, but I'm not sure how you'd decide which genre that is.

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.