Skip to content

Instantly share code, notes, and snippets.

@mihaip
Created January 31, 2014 06:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mihaip/8727429 to your computer and use it in GitHub Desktop.
Save mihaip/8727429 to your computer and use it in GitHub Desktop.
Dictionary search for two-letter Gmail system labels
// Paste into Chrome's DevTools and run step() repeatedly
var count = 0;
function step() {
var c1 = String.fromCharCode(97 + Math.floor(count/26));
var c2 = String.fromCharCode(97 + count % 26);
location.hash = "#search/label:^" + c1 + c2 + "+is:anywhere";
count++;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment