Skip to content

Instantly share code, notes, and snippets.

@kana
Created December 5, 2010 05:48
Show Gist options
  • Save kana/728841 to your computer and use it in GitHub Desktop.
Save kana/728841 to your computer and use it in GitHub Desktop.
var rd = g_preferences.prafbe_right_dict();
var wd = g_preferences.prafbe_wrong_dict();
var td = {};
var ts = [];
for (var t in rd) {
if (!(td[t])) {
ts.push(t);
td[t] = true;
}
}
var xs = prafbe.list_most_interesting_tokens(rd, wd, ts, ts.length, true);
$(':input[name="custom_stylesheet"]').val($.toJSON(xs));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment