Browser script to scrape and download your saved UltimateGuitar tabs to CSV/JSON
Find a file
Fabio Manganiello 35d50a7b98 Preventing "Not allowed to navigate top frame to data URL" on Chromium-based browsers
Chromium no longer allows `data` URLs to be passed to `window.open`.
The best alternative is to simply create an `a` element with a filename
and the `data` URL and let the browser download it on click.
2022-05-04 02:01:56 +02:00
json2csv.py Added json2csv script 2022-02-23 23:08:20 +01:00
LICENSE Initial commit 2022-02-23 20:49:01 +01:00
README.md Added json2csv script 2022-02-23 23:08:20 +01:00
ug.js Preventing "Not allowed to navigate top frame to data URL" on Chromium-based browsers 2022-05-04 02:01:56 +02:00

ultimate-guitar-mytabs

This browser script allows you to scrape and download your saved UltimateGuitar tabs to JSON format.

There are two ways to use the ug.js script:

  1. Install it as a Greasemonkey script (or whatever extension you use for custom UserScript). Every time you browse to your UltimateGuitar page, the Download button will appear next to the header.

  2. Manually paste the code in the browser developer console - the button will be added on the fly. You can also manually call getTabs from the developer console to access, filter and manipulate the list of objects.

Screenshot

Note that the script will download all the tabs on the current page. If you want to download all of your tabs, then select All from the top filter. The current order of the tabs on the page is also preserved in the downloaded JSON.

Convert to CSV

If you want to convert the downloaded JSON to CSV, you can do so by using the json2csv.py script. Usage:

$ python json2csv.py -i tabs.json -o tabs.csv
# Or
$ python json2csv.py < tabs.json > tabs.csv