minus.js

#5 / 2 rate

minus.js

8 users

2016-07-20

ryanpcmcquen

Extension Information

5 star
0%
4 star
0%
3 star
0%
2 star
0%
1 star
0%

Supported Languages

Description

A whole host of JS shortcuts, for the DOM hacker.

`minus` includes a whole host of shortcuts for JavaScript developers:


m.d for document

m.o for Object

m.ap for Array.prototype

m.eq or m.eqs for ELEMENT.querySelector

m.eqa or m.eqsa for ELEMENT.querySelectorAll

m.q or m.qs for document.querySelector

m.qa or m.qsa for document.querySelectorAll

m.ael for addEventListener

m.oc for Object.create

m.ok for Object.keys

m.aspc for Array.prototype.slice.call

m.qp for queryParent (taken from https://github.com/ryanpcmcquen/queryparent)

m.qsi for querySibling (taken from https://github.com/ryanpcmcquen/querysibling)
m.qsi.n is for querying the next sibling.
m.qsi.p is for querying the previous sibling.

Do `m.qs('body');` directly from your browser's console! Save time debugging your JS apps.

If a global object named `m` already exists, `minus.js` will try for `mi` or `min` and then gracefully bow out.

https://github.com/ryanpcmcquen/minus.js