// assumes jquery is used with $(...) sbool jqueryUsed(S html) { if (!regexpFind("\\$\\s*\\(", html)) false; for (S script : allJavascriptFromHTMLIncludingEventHandlers(html)) if (jcontains(jsTok(script), "$(")) true; false; }