Skip to content

Instantly share code, notes, and snippets.

@Stevie-O
Created September 14, 2016 13:00
Show Gist options
  • Save Stevie-O/c52286f3eab940854e5e91545732847f to your computer and use it in GitHub Desktop.
Save Stevie-O/c52286f3eab940854e5e91545732847f to your computer and use it in GitHub Desktop.
Bookmarklet for Trimps to get current portal statistics
javascript:(function(){var summary = ''; for (var x in game.stats) { var s = game.stats[x]; if (s.value === undefined) continue; var v = (typeof(s.value) == 'function' ? s.value() : s.value.toString()); summary += s.title + ': ' + v + '\n'; } summary += 'Helium: ' + game.resources.helium.owned + '\n'; summary += 'Time: ' + updatePortalTimer(true); tooltip('Export', null, 'update'); document.getElementById('exportArea').value = summary;})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment