Window
Attributes related to the debugging of Nighty's window.
warning
"Attempting to reverse-engineer, decompile, or modify the software" goes against Nighty's ToS.
Use at your own risk! Never share scripts that use these attributes publicly.
info
Are you searching how to inject custom JavaScript? This feature is coming soon!
js_api
2.0.0
nightylib.debug.js_api: object
The hidden JS → Python API used by pywebview.
tip
You can inspect this API easily by running dir(js_api).
Example: hide the interface for 3 seconds
from nightylib.debug import js_api
import time
js_api.hide()
time.sleep(3)
js_api.show()
open_devtools
2.0.0
def nightylib.debug.open_devtools() -> bool
Opens the browser's default developer tools for the currently active Nighty window. Returns True on success.
warning
This feature is currently available on Windows only.
Example: open devtools
from nightylib.debug import open_devtools
open_devtools()