diff --git a/4chan_x.user.js b/4chan_x.user.js index ee37e74b8..6f86c9d6c 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -270,6 +270,11 @@ return ui.el.style.top = '999%'; } }; + /* + loosely follows the jquery api: + http://api.jquery.com/ + not chainable + */ $ = function(selector, root) { if (root == null) { root = d.body; diff --git a/script.coffee b/script.coffee index bad4f1ce8..4b3981249 100644 --- a/script.coffee +++ b/script.coffee @@ -184,6 +184,11 @@ ui = hoverend: (e) -> ui.el.style.top = '999%' +### +loosely follows the jquery api: +http://api.jquery.com/ +not chainable +### $ = (selector, root=d.body) -> root.querySelector selector