Skip to content

Instantly share code, notes, and snippets.

Created June 26, 2012 23:46
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
gcli command
name: 'qsa',
description: 'perform querySelectorAll on the current document and return number of matches',
params: [
name: 'query',
type: 'string',
description: 'CSS selectors seperated by comma',
exec: function(args, context) {
var result = context.environment.contentDocument.querySelectorAll(args.query);
return result.length;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment