Code Monkey home page Code Monkey logo

turntable.fm-squared's Introduction

Note

This script is in what I would consider "beta", so don't blame me if things break. This script is also not intended to be used in combination with other TT.FM modules or plugins you may have.

Features

  • Heavily improved chat interface and users list
  • Color coded users list for DJs (green), idle DJs (red), and moderators (blue)
  • Song stats, room stats, and user stats
  • Detailed song information, including album art and purchase links when available
  • Similar track listings for the current song when available
  • Increased height of the DJ Queue for easier queueing.
  • Auto-Respond to messages
  • Anti-idle script to help prevent you from going idle while djing
  • Auto DJ (use with caution, configurable in milliseconds)
  • Auto Upvote (autobop) while listening or DJing
  • Chat alert on mention of name aliases (configurable)
  • Chat alert of the elapsed time it took a DJ to fill a slot, aka anti-auto dj (configurable)

Current Issues

  • Album pricing sometimes shows $-1.
  • Does not fit on small screens due to the intensive UI.

Installation

This script only works for Google Chrome and Firefox. For Firefox, you must have Greasemonkey installed.

Google Chrome

You can install in three different ways depending on how hardcore you are:

To install from the Google Chrome Web Store (the fast way): Just click here while in Chrome and click the Add to Chrome button: https://chrome.google.com/webstore/detail/ldipemodldjfgcejcgpehbnocimlllhn

To load the packed extension (the fast way): Just so you know, extensions are packaged as signed ZIP files with the file extension "crx". Don't be scurred.

To load the unpacked extension from the source code of this repository (for young jedis):

  • Download/clone this repository to your machine via git clone [email protected]:cballou/Turntable.FM-Squared.git
  • Open up your chrome browser.
  • Type in chrome://extensions/ in your location bar or click on the Wrench icon follwed by Tools > Extensions
  • In the upper right of the screen, click the checkbox to turn on Developer mode if not already checked
  • You should now see a button to Load unpacked extension..., click this bad boy.
  • Using the directory finder that pops up, browse to and highlight the chrome-ext directory inside the newly cloned repository.
  • Click OK.
  • You should now be good to roll. Navigate over to a room on Turntable.FM and it should load up instantly.

Firefox

To install as a Greasemonkey script, simply navigate to and follow the popup instructions: https://github.com/cballou/Turntable.FM-Squared/raw/master/greasemonkey/tt-squared.user.js

After Installation

When you enter a room, you'll notice TT.FM Squared on the right. Click on the settings tab to adjust your personal settings.

Screenshots

Chat window displaying idle DJs and user options Chat window displaying current djs and idle times Similar tracks display for the current song Settings page Stats page

Change Log

  • 2012-07-27 - Potentially fixed config persistance problems. Fixed issues with auto responder. Fixed PayPal form. Fixed some styling. Fixed affiliate linking for similar tracks.
  • 2012-03-23 - Added to the Chrome store. Available at https://chrome.google.com/webstore/detail/ldipemodldjfgcejcgpehbnocimlllhn
  • 2012-03-22 - Added new instructions for Chrome extension installation. Created a new package for easier Chrome install.
  • 2012-03-20 - Made the extension fully functional as a Firefox Greasemonkey script. Styling functional in Firefox. Fixed chat window resizing.
  • 2012-03-13 - Fixing the chat idle time display. Removing dj idle times binding. Fixing similar track handling on next song play. Added TT.FM song search for similar tracks.
  • 2012-01-10 - Adding handling for guest coloring.
  • 2012-01-10 - Added LocalStorage support for saving a user's configuration preferences.

Documentation on Packaging Chrome Extensions

Just in case you wanted to repackage this for yourself.

License

This project is licensed under the GNU General Public License v3.0 with additional permissions. Permissions are detailed below.

Turntable.FM Squared is distributed under the GNU General Public License version 3 with additional permissions. The following "Additional Permissions" are granted by Corey Ballou under GNU GPL version 3 section 7.

* If you modify this program, or any covered work, by linking or combining it with Turntable.FM Squared, containing parts covered by the terms fo the Turntable.FM Squared licenses, 
you must leave intact the portion of code for getSimilarTracks() as well as handleItunesResults(), as well as not modify the linksynergy.com URL containing an Apple Partner Program affiliate id.

You may read the GPLv3 license here: http://www.gnu.org/copyleft/gpl.html

Credits

This was made possible (in part) by research, porting, and idea grabbing from the following sources:

turntable.fm-squared's People

Contributors

cballou avatar crazylittle avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

turntable.fm-squared's Issues

Idle timers don't refresh on bop/upvote

Right now, the idle timers only display the time since last chat message. A lot of rooms consider upvoting a reset of idle time as well, so if this could be added as a config option, that would be greatly appreciated

Multiple idle timer options

I recently switched from using turntable.fm plus, and so far I love it. the only thing that I miss is the Idle timers counting/resetting for votes and for messages. I have looked at lot of other comments on this and other extensions and realize that not every one wants that. so what I would suggest is either having 2 timers one for votes and one for messages, or have an option for the timers to count/reset when a user votes or chats. the other option would be that it only resets for messages. Also the text showing the timers could be a little bit darker.(the last one is very minor, and just an opinion)
Edit: Was doing some testing with the notifications and I realized that in the notifications for a private message, every space shows up as %20 and other various characters come up as otherwise.(for example "?" shows as a %3f)

User list popup issues

The little popup list on the user list does not work for users that have any color but white (like red, green..) no workie..

Awesome

I just wanted to say, this is a super cool project and I really like what you're doing here. Feel free to snag any code you find useful from ttTools

Idle Replies - Loop

No aliases are set. When my idle reply comes up in response to a ping, I repeatedly reply to my own name in the initial message. This has been tested from other accounts. For example:

DJ TotallyABot: @UTBot

UTBot: Sorry @DJTotallyABot, but I am currently sleeping.

UTBot: Sorry @UTBot, but I am currently sleeping.

UTBot: Sorry @UTBot, but I am currently sleeping.

etc

UTBot looks at his own name in his own first message, and uses it to loop. Why does it do this? I am unable to figure this one out.

Settings Not Saving

Every time the page has to load (leaving room, refreshing, etc) the settings are reset to default, except for the text areas. So any check boxes, like auto up vote and anti idle, both of which i don't use, are enabled. Sorta gets annoying, and im getting close to getting banned sometimes when i meant to have auto DJ off.

%20 in Similar Tracks Search

When clicking on Find Similar Tracks and then clicking on the Blue Search TT.FM button you get a search string with %20 instead of the spaces that should be there. I understand %20 is code for "space" but this causes the search results to return nothing. An extension that seems to do this correctly is TurnTable Extended when you click on the Suggestion Link above your queue.

I don't mean to sound super critical but I'm surprised that there isn't already an open bug for this. I saw it within minutes of installing the app and it's actually a deal breaker for me. I love Turntable.FM-Squared more than any other extension.

Loading issues

I am using chrome and I unchecked the app to disable it and test a different app. when I rechecked it, it seems like it wanted to load, it moved my TT screen over and left a large black blank space. After refreshing my auto upvote is not working. Have tried turning it off and refreshing the turning it back on but still no luck.

Request for a configurable layout

It seems like each discreet element in this extension could be considered a 'widget' (or whatever you want to call it) - and it would be nice to be able to move/add/remove various widgets in the different sections. For example, it would be nice to be able to add some of the STATS items to the CHAT pane so that I don't have to switch panels to see upvote/downvote stats. This would prove to be especially useful if other advanced features (like playlist management) are ever added.

My Aliases not working

I am not hearing any sounds other than the regular chat sound on the mention of my aliases, Would also be nice to have it hi-light the chat message that mentioned my aliases. Maybe even have a Chrome Notification open up.

Chat box cutting off text

The chat box is cutting off 1 character of long strings of text... looks like it is hiding behind the scroll bar if the text is just the right length, right amount of spacing...

The auto upvote stops all the time

I have to either press awesome myself to "reset" it or I have to uncheck, save settings, check it again, save settings. This is a great extension, just have this issue with it lol. Hope you can fix it!!

Chat window wrap issues

When chatting (even with a widescreen) the chat window gets pushed over to the left and gets stuck there until i click in the empty text box and drag to the left.

Chat box erasing text

I love the extension, but I've had to disable it. When I'm typing in the chat box it will randomly erase everything I've typed. It gets pretty annoying trying to type something only to hit enter and see only the last word or two get sent.

Running in Chrome 21.0.1180.89 on Mac OS X 10.8.1

It doesn't seem to work at all as of today...

since the last update the elongated dj queue feature vanished, a definite bummer but doable, now though it seems that the whole extension isn't working, none of the features seem to work (Auto Upvote RIP ;_; ). I really LOVE this extension, and I hope you have the time to fix it...PLEASE :)

Styling

This is not really a bug, more of a suggestion for styling...

Don't mean to sound rude or anything but not digging the green on TTSquared, maybe try to match TT more or maybe another color that stand out and looks nice. Also maybe add a button to those title bars that minimize so users know they can minimize and maybe even some small text that says minimize and maximize and the icon/image changes state depending on if it is minimized or maximized....

I am a graphic designer and willing to help with the looks of it if you want... or not... for free of course... no worries on that, just thought I would offer! Really like your app, couple of tweaks and maybe even a few small additions and I think this app would be #1 or #2 for TT users! great work so far!

ideas to think about...

-Upvote delay input ( 4 seconds before i start to bop... 20 seconds..) using a slider, or custom text entry field

-Multiple sounds to choose form for the notifications (mario coin, record scratch.. so on..)

-Some kind of tagging for songs

-button to push songs to the bottom of the que

:)

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.