Skip to content

Instantly share code, notes, and snippets.

@wein3967
Last active July 30, 2016 00:20
Show Gist options
  • Save wein3967/affb8e140623207de126cbf985c2d2d9 to your computer and use it in GitHub Desktop.
Save wein3967/affb8e140623207de126cbf985c2d2d9 to your computer and use it in GitHub Desktop.
This is a script that grabs all your DIM items across all characters and puts them into a single array. From there you can examine, filter, etc.
// MAIN CODE
var stuff = angular.element(document.body).injector().get('dimStoreService').getStores();
var guardian1_Items = (stuff.length >= 2) ? stuff[0].items : [];
var guardian2_Items = (stuff.length >= 3) ? stuff[1].items : [];
var guardian3_Items = (stuff.length >= 4) ? stuff[2].items : [];
var vaultItems = stuff[stuff.length - 1].items;
var allItems = guardian1_Items.concat(guardian2_Items, guardian3_Items, vaultItems);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment