Function Codes
Type / in any search box on this site and it becomes a command line. Matching
codes appear as you type; press Enter to run one, or Esc
to go back to searching.
Arguments
A code shown as /tag <value> takes an argument: type the code, a space, then
the value.
arguments
/tag photos
/page 2
/sort old
Adding your own
Codes register themselves, so a site can add its own without touching the ones
that ship. Register after commands.js has loaded:
custom code
YoloCommands.register({
name: 'hello',
describe: 'Say hello',
run: function () {
YoloCommands.announce('Howdy');
}
});
Add arg to require a value, and when to hide the code on pages where it
would not work — that is how the index codes above stay off pages that have no
posts to sort.