Module userscripts
Userscript support for luakit
Evaluates and manages userscripts.
JavaScript userscripts must end in .user.js
Functions
userscripts.save (file, js)
Save a userscript to a file.
Parameters
-
fileType: stringThe file path in which to save the userscript.
-
jsType: stringThe userscript contents.
userscripts.del (file)
Delete a userscript file.
Parameters
-
fileType: stringThe file path of the userscript to remove.
Fields
userscripts.dir
Type: string
Read-only
The directory in which to search for userscripts.
By default, this is
$XDG_DATA_HOME/luakit/scripts
.
Attribution
Authors
Copyright
- 2011 Constantin Schomburg
- 2010 Fabian Streitel
- 2010 Mason Larobina
- 2010 Fabian Streitel