Skip to content

Console code: get UG chord charts with sharps to display as flats

License

Notifications You must be signed in to change notification settings

bartverdonck/UGChordstoFlats

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents

  1. About UGChordstoFlats
  2. How to use

About UGChordstoFlats

Changes sharp chords into flat chords on the site Ultimate Guitar. Most useful in the context of transposition.

This implementation is a fork from https://github.com/hongjes1/UGChordstoFlats.

Actually, it has been competely rewritten; the visible differences are:

  • rewrite only the sharped chords (the original implementation was also rewriting B into Cb for instance)
  • deactivate chord diagrams to prevent chord reset (on mouse over)
  • works with all chord names, without limitation; the only assumption is that the '#' is the second character (second character after '/' for bass notes)

How to use

As a browser extension

For Firefox: https://addons.mozilla.org/en-US/firefox/addon/ug-chords-to-flats/

For Chrome: https://chrome.google.com/webstore/detail/ug-chords-to-flats/denhegbijdfbckdmjjmjbcfdhjogadlh

When viewing a chord tab on the UG web site, simply click the "bUG" button at the right of the address bar, then the "b" (flat) button that appears, that will rewrite sharp chords into flat chords.

With the browser console

  1. Open a tab's page.
  2. Open the javascript console:
    Chrome: CTRL+SHIFT+J (Mac: COMMAND+OPTION+J)
    Firefox: CTRL+SHIFT+K (Mac: COMMAND+OPTION+K)
    other browsers: search the web for "open console <browser>"
  3. Copy/paste the code from UGChordsToFlats.js into the console, then press ENTER.

Note: the chord diagrams are deactivated, because the code that displays them also resets the chord names.

Back to top

About

Console code: get UG chord charts with sharps to display as flats

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 76.4%
  • Makefile 15.2%
  • HTML 8.4%