notroy v1.0.7
You can setup your own server (npm i notroy
) or use the demo service https://n.vane.im.
Quick Start
Inject this script into a page
<script src="https://n.vane.im/{id}"></script>
The {id}
should be unique for each page, so that you can control different pages
independently. Anyone who has the id can control the page, so you'd better treat it as
a password. Multiple pages can share a same id (actually the id is group id, which can be used for broadcast).
If you left the id empty, a random id will be generated, it will be printed in the console.
Execute Random Code on Page
Now you are able to execute any code on that page, for example
curl https://n.vane.im/{id} -d "alert('ok')"
The page should alert "ok".
Get Return Value
The example below will return the user agent of that page.
curl https://n.vane.im/{id} -d "navigator.userAgent"
The client will auto-handle promise.
Live Reload Page
Use it to auto-reload the page
when file changes during the development.
Get guard
cli tool from here.
cd to-my-project
guard -- curl https://n.vane.im/{id} -d "location.reload()"