Skip to content

Instantly share code, notes, and snippets.

@marcelovani
Last active December 17, 2015 05:49
Show Gist options
  • Save marcelovani/5561179 to your computer and use it in GitHub Desktop.
Save marcelovani/5561179 to your computer and use it in GitHub Desktop.
Getinstinct tweaks
// ==UserScript==
// @name Getinstinct
// @namespace http://use.i.E.your.homepage/
// @version 0.1
// @description Tweaks for Getinstinct
// @match http://getinstinct.com/*/riffs/*/practice
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js
// @copyright 2012+, You
// ==/UserScript==
$(document).ready(function() {
// style fixes
var head = document.getElementsByTagName('head')[0];
var s = document.createElement('style');
var css = '';
// Change the thickness of strings.
css += '.notation-tab-renderer-notation .notation-tab-renderer-string {height:2px;} ';
// Change color of strings
css += '.notation-tab-renderer-notation :nth-child(1).notation-tab-renderer-string { background: #3300CC;} ';
css += '.notation-tab-renderer-notation :nth-child(2).notation-tab-renderer-string { background: #336633;} ';
css += '.notation-tab-renderer-notation :nth-child(3).notation-tab-renderer-string { background: #FF6633;} ';
css += '.notation-tab-renderer-notation :nth-child(4).notation-tab-renderer-string { background: #FF0033;} ';
css += '.notation-tab-renderer-notation :nth-child(5).notation-tab-renderer-string { background: #CC00CC;} ';
css += '.notation-tab-renderer-notation :nth-child(6).notation-tab-renderer-string { background: #3300CC;} ';
s.setAttribute('type', 'text/css');
if (s.styleSheet) { // IE
s.styleSheet.cssText = css;
} else { // the world
s.appendChild(document.createTextNode(css));
}
head.appendChild(s);
// Change color of notes to match string color
$('.notation-tab-renderer-notation .note').each(function( index ) {
//if ($(this).attr('top') == '82px') $(this).find('.circle').css('background', '#3300CC');
console.log( index + ": " + $(this).attr('top') );
// alert($(this).attr('top'));
});
// Hide the feedback button.
//$('#feedback-button').hide();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment