From 7db58c1193383a4157c9d38caecbadec1702f10d Mon Sep 17 00:00:00 2001 From: James Campos Date: Tue, 19 Jul 2011 14:30:52 -0700 Subject: [PATCH] mention jquery --- 4chan_x.user.js | 5 +++++ script.coffee | 5 +++++ 2 files changed, 10 insertions(+) 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