Is it possible to access the Command Line Api from an external api?
Simple Example:
HTML
<div id="myDiv"></div>
<script src="myScript.js"></script>
myScript.js
$$('#myDiv').textContent = 'this will not work';
I do not wan’t to load an external library like jQuery or Zepto because seens like this is already loaded locally.
To answer your question, no. But I don’t think you really want to. The API may change, breaking your code. If all you’re looking for is the query selector. I think you are better off using a snippet found on the MDN.
Document.querySelector